SocketControlMessage.deserialize

gio.socket_control_message.SocketControlMessage deserialize(int level, int type, ubyte[] data)

Tries to deserialize a socket control message of a given level and type. This will ask all known (to GType) subclasses of #GSocketControlMessage if they can understand this kind of message and if so deserialize it into a #GSocketControlMessage.

If there is no implementation for this kind of control message, null will be returned.

Parameters

levela socket level
typea socket control message type for the given level
datapointer to the message data

Returns

the deserialized message or null