com.onlineobject.objectnet Namespace

ChannelBase..::..Connect Method (String, UInt16, UInt16, UInt16)

Connects to the specified endpoint with timeout.

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

Syntax


public bool Connect(

	string ip,

	ushort tcpPort,

	ushort udpPort,

	ushort timeout

)

Parameters

ip
Type: String
The IP address to connect to.
tcpPort
Type: UInt16
The TCP port to connect to.
udpPort
Type: UInt16
The UDP port to connect to.
timeout
Type: UInt16
The connection timeout in milliseconds.

Return Value

True if connection is successful, false otherwise.