Skip to main content

udpsocket.isopen()

Determine the state of a UDP socket

Availability

Device

Returns

Boolean — whether the socket is open (true) or closed (false)

Description

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.