com.onlineobject.objectnet Namespace

EmbeddedServer..::..Start Method (UInt16, UInt16, Byte, Boolean)

Starts the server.

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

Syntax


public void Start(

	ushort port,

	ushort maxClientCount,

	byte messageHandlerGroupId,

	bool useMessageHandlers

)

Parameters

port
Type: UInt16
The local port on which to start the server.
maxClientCount
Type: UInt16
The maximum number of concurrent connections to allow.
messageHandlerGroupId
Type: Byte
The ID of the group of message handler methods to use when building messageHandlers()()()().
useMessageHandlers
Type: Boolean
Whether or not the server should use the built-in message handler system.

Remarks


Setting useMessageHandlers to falseFalsefalsefalse (False in Visual Basic) will disable the automatic detection and execution of methods with the EmbeddedMessageHandlerAttribute, which is beneficial if you prefer to handle messages via the MessageReceived event.