Skip to main content

udpsocket.isopen()

Determine the state of a UDP socket

Availability

Device (from impOS™ 42)

Returns

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

Description

This is draft documentation which covers impOS™ functionality that, though currently in internal development, has been made available to a number of customers for testing purposes only. Both the functionality described here and the documentation itself are subject to change, including breaking changes, and may differ significantly from their final release versions.

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.