EasyTCPSocket.WaitForConnection

From Xojo Documentation

Method

EasyTCPSocket.WaitForConnection(Timeout as Integer) As Boolean

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.

Example

If EasyTCPSocket1.WaitForConnection(10) Then
// execute communications
Else
// connection failed
End If