Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::network::tcp::doTCPWriteExx Function
C++
IMPORT_METHOD LOGICAL doTCPWriteExx(PCLIENT lpClient, CPOINTER pInBuffer, size_t nInLen, int bLongBuffer, int failpending DBG_PASS);
Parameters 
Description 
PCLIENT lpClient 
network connection to write to 
CPOINTER pInBuffer 
buffer to write 
size_t nInLen 
Length of the buffer to send 
int bLongBuffer 
if TRUE, then the buffer written is maintained exactly by the network layer. A WriteComplete callback will be invoked when the buffer has been sent so the application might delete the buffer. 
failpending 
Uhmm... maybe if it goes to pending, fail? 

#The buffer will be sent in the order of the writes to the socket, and released when empty. If the socket is immediatly able to write, the buffer will be sent, and any remai

If bLongBuffer is not set, then if the write cannot immediately complete, then a new buffer is allocated internally, and unsent data is buffered by the network collection. This allows the user to not worry about slowdowns due to blocking writes. Often writes complete immediately, and are not buffered other than in the user's own buffer passed to this write.

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!