ENet Xojo plugin

ENetClient.Connect Method

Connects to a host

Connect(
   host as String,
   port as UInt16,
   channelCount as UInt8) as Boolean

Parameters

host
The host name or IP number to connect to.
port
The port number to connect on.
channelCount
Number of channels to use. This number cannot exceed what was supplied as channel limit in the constructor of this class.

Returns

Boolean
True if connection was successful, else false.

Remarks

When connection is successful then events on this class will supply you with a valid peer instance.

See Also

ENetClient Class