ENet Xojo plugin

ENetServer.Listen Method

Listens for ENet connections on a specific port, using specific amount of channels.

Listen(
   port as UInt16,
   maxPeerCount as UInt16,
   channelCount as UInt8) as Boolean

Parameters

port
The UDP port number to listen on.
maxPeerCount
Maximum number of peers. (Max 4095 can be passed here)
channelCount
Channel count. Maximum here is 255 and minimum is 1.

Returns

Boolean
True if listening was successful, else false.

Remarks

See Also

ENetServer Class