HttpGetClientIdleTime Function  
 
UINT WINAPI HttpGetClientIdleTime(
  HSERVER hServer,  
  UINT nClientId,  
  UINT *lpnElapsed  
);

Return the idle timeout period for the specified client session.

Parameters

hServer
The server handle.
nClientId
An unsigned integer which uniquely identifies the client session.
lpnElapsed
A pointer to an unsigned integer value that will contain the number of seconds the client session has been idle. This parameter may be NULL if this information is not required.

Return Value

If the function succeeds, the return value is client idle timeout period in seconds. If the server handle and client ID do not specify a valid client session, the function will return zero.

Remarks

The HttpGetClientIdleTime function will return the number of seconds that the client may remain idle before being automatically disconnected by the server. The idle time of a client session is based on the last time a command was issued to the server or when a data transfer completed. The server will never disconnect a client that is in the process of sending or receiving data, regardless of the idle timeout period.

The default idle timeout period for a client session is 60 seconds, however the server can be configured to use a different value. The minimum timeout period for a client is 10 seconds, the maximum is 300 seconds (5 minutes). An application can change the timeout period for a specific client session using the HttpSetClientIdleTime function.

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: cshtsv12.lib

See Also