com.onlineobject.objectnet Namespace

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

Sends a message to all connected clients except the given one.

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

Syntax


public void SendToAll(

	EmbeddedMessage message,

	ushort exceptToClientId,

	bool shouldRelease

)

Parameters

message
Type: com.onlineobject.objectnet.server..::..EmbeddedMessage
The message to send.
exceptToClientId
Type: UInt16
The numeric ID of the client to not 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.