SocketCore.IsConnected

From Xojo Documentation

Revision as of 14:32, 8 August 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Read-Only Property (As Boolean )
BooleanValue = aSocketCore.IsConnected

Supported for all project types and targets.

Indicates whether the socket is currently connected.

Notes

For TCPSockets, a connection means you can send and receive data and are connected to a remote machine. For UDPSockets, this means that you are bound to the port and are able to send, receive, join or leave multicast groups, or set socket options.

Example

If EasyUDPSocket1.IsConnected Then
// proceed using the connection
Else
MsgBox("Connection failed!")
End If