Socket.getProtocol

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

class Socket
getProtocol
()

Return Value

Type: gio.types.SocketProtocol

a protocol id, or -1 if unknown