Determine the state of a UDP socket
Device
Boolean — whether the socket is open (true
) or closed (false
)
This method allows your code to determine whether an existing UDP socket is available for use. It returns true
if the UDP socket is available, whether it has been bound to a local port or not. However, if the UDP socket has been closed — and is therefore unavailable for use — this method returns false
.