deserialize


Description:

public static SocketControlMessage? deserialize (int level, int type, uint8[] data)

Tries to deserialize a socket control message of a given level and type.

This will ask all known (to GType) subclasses of SocketControlMessage if they can understand this kind of message and if so deserialize it into a SocketControlMessage.

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

Parameters:

level

a socket level

type

a socket control message type for the given level

data

pointer to the message data

size

the size of the data in bytes

Returns:

the deserialized message or null