Gio.SocketControlMessage.deserialize
function deserialize(level: Number(gint), type: Number(gint), data: ByteArray): Gio.SocketControlMessage {
// Gjs wrapper for g_socket_control_message_deserialize()
}
Tries to deserialize a socket control message of a given level and type. This will ask all known (to GType) subclasses of Gio.SocketControlMessage if they can understand this kind of message and if so deserialize it into a Gio.SocketControlMessage.
If there is no implementation for this kind of control message, null will be returned.
Since 2.22
- level
a socket level
- type
a socket control message type for the given level
- data
pointer to the message data
- Returns
the deserialized message or null