Determine if the server is currently in a locked state.
Parameters
None.
Return Value
If the server is locked,
the method returns a non-zero value. If the server is not locked, the return value is zero.
Remarks
The IsLocked method determines if a server has been locked
using the Lock method. Only the thread that has
locked the server may interact with it and all other threads will
block when they attempt to perform a network operation. After the
server is unlocked, the blocked threads will resume normal execution.
If the application has created multiple instances of the
CInternetServer class, this method will return a non-zero value if
any of those servers have been locked, not only the current instance.
Requirements
Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header: Include cswsock10.h
Import Library: cswskv10.lib
See Also
Lock,
Unlock
|