API frames Socket Bind/Listen - 0x46
Digi XBee® 3 Cellular LTE Cat 1 AT&T Smart Modem User Guide
276
Socket Bind/Listen - 0x46
Description
Opens a listener socket that listens for incoming connections.
When there is an incoming connection on the listener socket, a Socket New IPv4 Client - 0xCC frame is
sent, indicating the socket ID for the new connection along with the remote address information.
For a UDP socket, this frame binds the socket to a given port. Abound UDP socket can receive data
with a Socket Receive From: IPv4 - 0xCE frame.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
format.
Field name
Field
value Data type Description
Frame type 0x46 Byte
Frame ID Byte A reference identifier used to match status
responses. If set to 0, the device does not send
a response.
Socket ID Byte The socket IDto listen on.
Source port 16-bit big endian The port to listen on.