gSocketGetProtocol {RGtk2} | R Documentation

## gSocketGetProtocol

### Description

Gets the socket protocol id the socket was created with. In case the protocol is unknown, -1 is returned.

### Usage

    gSocketGetProtocol(object)

### Arguments

``object`` | a `GSocket`.

### Details

Since 2.22

### Value

[`GSocketProtocol`] a protocol id, or -1 if unknown

### Author(s)

Derived by RGtkGen from GTK+ documentation

[Package RGtk2 version 2.20.40 Index]