Socket.getProtocol
gio.types.SocketProtocol getProtocol()Gets the socket protocol id the socket was created with. In case the protocol is unknown, -1 is returned.
Returns
a protocol id, or -1 if unknown
gio.types.SocketProtocol getProtocol()Gets the socket protocol id the socket was created with. In case the protocol is unknown, -1 is returned.