Class: Gio::SocketControlMessage
- Inherits:
-
Object
- Object
- Gio::SocketControlMessage
- Defined in:
- (unknown)
Overview
Class structure for GSocket::ControlMessage.
Direct Known Subclasses
Class Method Summary collapse
-
.deserialize(level, type, size, data) ⇒ Gio::SocketControlMessage
Tries to deserialize a socket control message of a given level and type.
Instance Method Summary collapse
-
#level ⇒ Integer
Returns the "level" (i.e. the originating protocol) of the control message.
-
#msg_type ⇒ Integer
Returns the protocol specific type of the control message.
-
#serialize(data) ⇒ nil
Converts the data in the message to bytes placed in the message.
-
#size ⇒ Integer
Returns the space required for the control message, not including headers or alignment.
Class Method Details
.deserialize(level, type, size, data) ⇒ Gio::SocketControlMessage
Tries to deserialize a socket control message of a given level and type. This will ask all known (to GType) subclasses of GSocket::ControlMessage if they can understand this kind of message and if so deserialize it into a GSocket::ControlMessage.
If there is no implementation for this kind of control message, nil will be returned.
Instance Method Details
#level ⇒ Integer
Returns the "level" (i.e. the originating protocol) of the control message. This is often SOL_SOCKET.
#msg_type ⇒ Integer
Returns the protocol specific type of the control message. For instance, for UNIX fd passing this would be SCM_RIGHTS.
#serialize(data) ⇒ nil
Converts the data in the message to bytes placed in the message.
data is guaranteed to have enough space to fit the size returned by g_socket_control_message_get_size() on this object.
#size ⇒ Integer
Returns the space required for the control message, not including headers or alignment.