com.onlineobject.objectnet Namespace

EmbeddedServer..::..ChangeTransport Method

Stops the server if it's running and swaps out the transport it's using.

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

Syntax


public void ChangeTransport(

	IEmbeddedServer newTransport

)

Parameters

newTransport
Type: com.onlineobject.objectnet.server.Transports..::..IEmbeddedServer
The new underlying transport server to use for sending and receiving data.

Remarks


This method does not automatically restart the server. To continue accepting connections, Start(UInt16, UInt16, Byte, Boolean) must be called again.