| BOOL WINAPI InetIsWritable(
|
| |
SOCKET hSocket, |
|
| |
DWORD dwTimeout |
|
| );
|
The InetIsWritable function is used to determine if data
can be written to the socket.
Parameters
- hSocket
- Socket handle.
- dwTimeout
- Timeout value in milliseconds. If the socket cannot be written
to within this time period, the function will return a value of
zero. A timeout value of zero specifies that the socket should be
polled without blocking the current thread.
Return Value
If the current thread can write data to the socket without
blocking, the function returns a non-zero value. If the current
thread cannot write any data without blocking, the function returns
zero.
Remarks
Although this function can be used to determine if some amount
of data can be written to the socket, it does not indicate the
amount of data that can be written without blocking the calling
process. In most cases, it is recommended that large amounts of
data be broken into smaller logical blocks, typically some multiple
of 512 bytes in length.
Requirements
Client: Requires Windows 7, Windows Vista or Windows
XP.
Server: Requires Windows Server 2008 or Windows Server
2003.
Header: Include cswsock7.h.
Library: Use cswskav7.lib.
See Also
InetIsConnected, InetIsListening, InetIsReadable
|