com.onlineobject.objectnet Namespace

EmbeddedServer..::..Send Method (EmbeddedMessage, UInt16, Boolean)

Sends a message to a given client.

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

Syntax


public void Send(

	EmbeddedMessage message,

	ushort toClient,

	bool shouldRelease

)

Parameters

message
Type: com.onlineobject.objectnet.server..::..EmbeddedMessage
The message to send.
toClient
Type: UInt16
The numeric ID of the client to send the message to.
shouldRelease
Type: Boolean
Whether or not to return the message to the pool after it is sent.

Remarks


If you intend to continue using the message instance after calling this method, you must set shouldRelease to falseFalsefalsefalse (False in Visual Basic). [EmbeddedMessage.Release] can be used to manually return the message to the pool at a later time.