Activity Timer Resets
A version of this page is also available for
4/8/2010
Power Manager can be set to monitor that applications are actively using sockets, rather than monitoring only whether sockets are connected. The networking stack does not directly support this action. However, you can create a thread that periodically polls the GetTcpStatistics and GetUdpStatistics functions to check whether TCP segments or User Datagram Protocol (UDP) datagrams are being transmitted or received. If datagrams are being transmitted or received, the thread can reset an activity timer. Your thread can be implemented as an installable device driver as part of Power Manager, or as part of an application.
Note
GetTcpStatistics and GetUdpStatistics can return data for loopback communication if local applications use sockets for interprocess communications (IPC).