Socket Listen Response - 0xC6
Description
The device sends this frame in response to a Socket Bind/Listen (0x46) 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 |
0xC6 |
Byte |
|
|
Frame ID |
|
Byte |
Resource identifier used to match status responses. |
|
Socket ID |
|
Byte |
The socket ID of the socket that has started listening. |
| Status | Byte |
Status code. See table below. |
The following table shows the status codes.
| Code | Description |
|---|---|
|
0x00 |
Success |
| 0x01 | Invalid port |
| 0x02 | Error |
| 0x03 | Already bound or listening |
| 0x20 | Invalid socket ID |
PDF
