
API frames
Socket Bind/Listen - 0x46
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
283
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
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. A bound 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
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 ID to listen on.
Source port
16-bit big endian The port to listen on.