Activity Timer Resets (Windows CE 5.0)
The Power Manager can be set to monitor that applications are actively using sockets, rather than to monitor only if sockets are connected. The networking stack does not directly support this action. However, you may create a thread that periodically polls the GetTcpStatistics and GetUdpStatistics functions to determine if TCP segments or 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 the Power Manager, or as part of an application.
Note GetTcpStatistics and GetUdpStatistics may return data for loopback communication if local applications use sockets for interprocess communications (IPC).
See Also
Activity Timers | GetTcpStatistics | GetUdpStatistics
Send Feedback on this topic to the authors