EasyTCPSocket.WaitForConnection
From Xojo Documentation
Method
EasyTCPSocket.WaitForConnection(Timeout as Integer) As Boolean
Supported for all project types and targets.
Supported for all project types and targets.
Waits for a connection until Timeout elapses. Timeout is in seconds.
Notes
Returns True if a connection is made; otherwise it returns False.