EasyUDPSocket.Bind

From Real Software Documentation

Jump to: navigation, search
Method
EasyUDPSocket.Bind ( Port as Integer )

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
Personal tools