com.onlineobject.objectnet Namespace

EmbeddedClient..::..ChangeTransport Method

Disconnects the client if it's connected and swaps out the transport it's using.

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

Syntax


public void ChangeTransport(

	IEmbeddedClient newTransport

)

Parameters

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

Remarks


This method does not automatically reconnect to the server. To continue communicating with the server, Connect(String, Int32, Byte, EmbeddedMessage, Boolean) must be called again.