| INT WINAPI PopWrite( |
| |
HCLIENT hClient, |
|
| |
LPBYTE lpBuffer, |
|
| |
INT cbBuffer |
|
| ); |
The PopWrite function sends the specified number of bytes
to the server.
Parameters
- hClient
- Handle to the client session.
- lpBuffer
- The pointer to the buffer which contains the data that is to be
sent to the server.
- cbBuffer
- The number of bytes to send from the specified buffer.
Return Value
If the function succeeds, the return value is the number of bytes
actually written. If the function fails, the return value is
POP_ERROR. To get extended error information, call
PopGetLastError.
Remarks
The return value may be less than the number of bytes specified by
the cbBuffer parameter. In this case, the data has been
partially written and it is the responsibility of the client
application to send the remaining data at some later point. For
non-blocking clients, the client must wait for the POP_EVENT_WRITE
asynchronous notification message before it resumes sending data.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: cspopv12.lib
See Also
|