Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::network::tcp::TCPDrainEx Function
C++
IMPORT_METHOD LOGICAL TCPDrainEx(PCLIENT pClient, size_t nLength, int bExact);
Parameters 
Description 
PCLIENT pClient 
network connection to drain data from. 
size_t nLength 
how much data to skip. 
int bExact 
if TRUE, will consume all of nLength bytes. if FALSE, if there are less than nLength bytes available right now, the drain will end when no further data is available now. 

Drain is an operation on a TCP socket to just drop the next X bytes. They are ignored and not stored into any user buffer. Drain reads take precedence over any other queued reads.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!