9.15.1.11 +SOCKLST

This command is used to present a list of the DCE’s open sockets/connections.

Security – Default Security for the command is: GGGG

Table 9-161. Command Syntax

Command

Description

Security

AT+SOCKLST

List all sockets

GGGG

AT+SOCKLST=<SOCK_ID>

List socket

GGGG

Table 9-162. Command Parameter Syntax

Parameter Name

Type

Description

<SOCK_ID>

Integer

The socket ID. Valid range is 1-65535

Table 9-163. Response Syntax

Response

Description

+SOCKLST:<SOCK_ID>,<PROTOCOL>,<RMT_ADDR>,<RMT_PORT>,<LCL_PORT>

Socket list response

Table 9-164. Response Element Syntax

Element Name

Type

Description

<SOCK_ID>

Integer

The socket ID. Valid range is 1-65535

<PROTOCOL>

Integer

The protocol in use
  • 1 – UDP
  • 2 – TCP

<RMT_ADDR>

String

Remote address

<RMT_PORT>

Integer

Remote port

<LCL_PORT>

Integer

Local port