User's Manual

Table Of Contents
Direct Socket Interface
AT+i Programmer‘s Manual Version 8.32 13-3
13.3 +iLTCP Open A TCP Listening Socket
Syntax:
AT+iLTCP:<port>,<backlog>
Opens a TCP listening socket on the local IP address and the
specified port <port>. The <backlog> parameter specifies the
maximum number of remote concurrent connections allowed
through the listening socket.
Parameters:
<port>
0..65535
<backlog>
1..10
Command Options:
<port>
Listening port to be used by a remote system when connecting
to iChip.
<backlog>
Specifies the maximum number of active connections that may
be concurrently established through the listening socket.
Once the listening socket is open, it automatically accepts
remote connect requests up to the maximum allowed. When a
remote system connects through the listening socket, a new
TCP socket is spawned internally ready to send and receive
data. See the
AT+iLSST command for details on retrieving the
handles of active sockets connected through a listening socket.
When a connected socket is closed by the host using the
AT+iSCLS command, the listening socket allows a new
connection in its place.
Result Code:
I/<sock handle>
Upon successfully opening a TCP listening socket, a socket
handle is returned. The socket handle <sock handle> is in the
range 10..11 and used to reference the socket in all following
socket commands.
I/ERROR
Otherwise