EasyUDPSocket.Bind

From Xojo Documentation

Revision as of 00:10, 24 August 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Method

EasyUDPSocket.Bind(Port as Integer)

Supported for all project types and targets.

Binds the socket to the specified port.

Example

This example binds the socket to any available port between 8192 and 65535 (Note: the other member of the group must then use the same port, so you need to find a way to communicate this port to the others):

Do
Me.Bind (Rnd * (65536 - 8192) + 8192)
Loop Until Me.LastErrorCode = 0