| BOOL SetBacklog( |
| |
UINT nBacklog |
|
| ); |
Set the size of the backlog connection queue for the server.
Parameters
- nBacklog
- An integer value that specifies the size of the connection
backlog queue.
Return Value
If the method succeeds, the return value is non-zero. If the method
fails, the return value is zero.
Remarks
The SetBacklog method specifies the size of the queue
allocated for pending client connections. A value of zero specifies
that the queue should be set to a reasonable default value. On Windows
server platforms, the maximum value is large enough to queue several
hundred pending connections. This method should only be called prior
to invoking the Start method, it does not have any effect on an active
server. To get the current size of the backlog queue, use the
GetBacklog method.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cswsock12.h
Import Library: cswskv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|