Description

Opens a listener socket that listens for incoming connections.

When there is an incoming connection on the listener socket, a Socket New IPv6 Client - 0xCA frame.

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 - IPv6 - 0xCB frame.

Format

The following table provides the contents of the frame. For details on frame structure, see API Frames.

Offset Size Frame Field Description

0

8-bit

Start Delimiter

Indicates the start of an API frame.

1

16-bit

Length

Number of bytes between the length and checksum.

3

8-bit

Frame type

0x46

4

8-bit

Frame ID

A reference identifier used to match status responses.

If set to 0, the Transmit Status - 0x89 frame is disabled.

5

8-bit

Socket ID

The socket ID to listen on.

6

16-bit

Source Port

The port to listen on.

EOF

8-bit

Checksum

0xFF minus the 8-bit sum of bytes from offset 3 to this byte (between length and checksum).