TCPFlush Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
TCPFlush Function
C
void TCPFlush(
    TCP_SOCKET hTCP
);
Description

This function immediately transmits all pending TX data with a PSH flag. If this function is not called, data will automatically be sent when either a) the TX buffer is half full or b) the TCP_AUTO_TRANSMIT_TIMEOUT_VAL (default: 40ms) has elapsed.

Preconditions

TCP is initialized and the socket is connected.

Parameters
Parameters 
Description 
hTCP 
The socket whose data is to be transmitted. 
Returns

None

Remarks

SSL application data is automatically flushed, so this function has no effect for SSL sockets.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.