Zen API | Contents | Reference | Previous | Up | Next

zTcpClient_SetWriteBuffers
zTcpClient functions
C

    zStatus zTcpClient_SetWriteBuffers(zTcpClient client, zIntPtr socketSize, zIntPtr clientSize);

Parameters

Parameters | Description
zTcpClient client | zTcpClient object.
zIntPtr socketSize | Size of the write buffer maintained by the underlying socket (-1 to leave unchanged).
zIntPtr clientSize | Size of the write buffer maintained by the client object (-1 to leave unchanged).

Description

Sets the size of write buffers.

Remarks

Socket buffers decouple the sender and receiver, so that the sender does not need to block while waiting for the receiver to receive all bytes. Client buffers improve the efficiency of the client when performing several small write operations.

By default, the client buffer size is zero and the socket buffer size is determined by the underlying operating system. If you specify a non-zero client write buffer, remember to call zTcpClient_Flush to ensure that buffered bytes are written to the underlying zSocket.

File

zTcpClient.h

Copyright (c) 2008-2010 by LMI Technologies Inc. All rights reserved.
Contents | Reference