com.onlineobject.objectnet Namespace

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

Attempts to establish a connection using the provided IP address and ports.

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 use for the connection.
udpPort
Type: UInt16
The UDP port to use for the connection.
timeout
Type: UInt16
The timeout duration in seconds.

Return Value

True if the connection was successful, otherwise false.