Technical information
Direct Socket Interface
2-34 AT+i Commands Reference Manual May 31, 2008
The Socket Command Abort may be used to abort prematurely.
+iLTCP - Open a TCP Listening Socket
<rport> Remote port number to send to, or 0 to open a non-connected socket.
<lport> Optional local UDP port to use.
Command Options:
<host> The remote system's name may be any legal Internet server name that can
be resolved by W24's DNS (Domain Name Server) settings. The server
name may also be specified as an absolute IP address given in DOT form.
When the <host> is defined, the resulting UDP socket is created and
connected. If <host>=0.0.0.0, the socket is created but remains
unconnected. The first UDP packet to arrive automatically latches the
sender's IP port, in effect connecting the socket.
<rport> Specifies the remote system's port.
<lport> Specifies the local port to use. If unspecified, W24 allocates a port from its
internal pool.
Result Code:
I/<sock handle> Upon successfully opening and connecting the UDP socket to
<host>:<port>, a socket handle is returned. The socket handle <sock
handle> is in the range 0..9 and used to reference the socket in all following
socket commands.
I/ERROR Otherwise.
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 W24.
<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:










