RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseSocket.PeekBuf Method

Reads the buffer.

Pascal
function PeekBuf(var Buf; BufSize: Integer): Integer;
C++
__fastcall int PeekBuf( Buf, int BufSize);

Use PeekBuf to make a copy of data waiting in the socket buffer. Use the Buf parameter to assign a variable to the buffer, and use Bufsize to set the size of the buffer to be copied. PeekBuf only copies, but does not otherwise affect the contents of the buffer. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!