com.onlineobject.objectnet Namespace

EmbeddedServer..::..DisconnectClient Method (UInt16, EmbeddedMessage)

Disconnects a specific client.

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

Syntax


public void DisconnectClient(

	ushort id,

	EmbeddedMessage message

)

Parameters

id
Type: UInt16
The numeric ID of the client to disconnect.
message
Type: com.onlineobject.objectnet.server..::..EmbeddedMessage
Data that should be sent to the client being disconnected. Use Create()()()() to get an empty message instance.