com.onlineobject.objectnet Namespace

ITransport..::..Configure Method

Configures the transport layer with callback functions for client connection events and message receiving.

Namespace:  com.onlineobject.objectnet
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


void Configure(

	Action<ITransportClient> onClientConnected,

	Action<ITransportClient> onClientDisconnected,

	Action<ITransportClient, byte[]> onMessageReceived

)

Parameters

onClientConnected
Type: Action<(Of <(<'ITransportClient>)>)>
Callback invoked when a client connects.
onClientDisconnected
Type: Action<(Of <(<'ITransportClient>)>)>
Callback invoked when a client disconnects.
onMessageReceived
Type: Action<(Of <(<'ITransportClient, array<Byte>[]()[][]>)>)>
Callback invoked when a message is received from a client.