SocketID

A variable that holds the Socket ID that can be passed to other UDPSocket functions to operate on the socket or an error code. If negative, an error occurred (socket not opened). The values that can be returned are:

Code Description
>=0 Successful. This is the socket ID.
-1 Failed to allocate UDPSocket.
-2 Requested port in use.
-3  Limit of open ports reached.
-4 Port out of range.
-5 Invalid interface.

Type: Variable of type Long