User's Manual

Table Of Contents
Direct Socket Interface
AT+i Programmer‘s Manual Version 8.32 13-13
13.11 +iSFSH[%] Flush Socket’s Outbound Data
Syntax:
AT+iSFSH[%]:<hn>
Flushes (immediately sends) accumulated data in a TCP
socket‘s outbound buffer.
Parameters:
<hn>
A TCP socket handle of an open socket
Command Options:
<hn>
Must have been obtained by a previous execution of an
AT+iSTCP command during the current Internet mode session.
Or a socket accepted by a listening socket.
%
When the flush-and-acknowledge (%) flag is specified and
<hn> is a TCP socket handle, iChip flushes and waits for the
peer receipt acknowledgment of all outstanding outbound data.
Common errors associated with this flag are 215 (carrier lost)
and 203 (socket closed by peer in an orderly manner or did not
receive ACK after repeated attempts to retransmit
unacknowledged data).
Result Code:
I/OK
If <hn> is a handle to an open socket and, when <hn> is a TCP
socket handle, all outbound data has been received (and when
(%) flag specified also acknowledged) by peer.
I/ERROR
Otherwise
The Socket Command Abort may be used to abort prematurely.