Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
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 GetTcpStatisticsand GetUdpStatisticsfunctions 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: |
---|
GetTcpStatisticsand GetUdpStatisticscan return data for loopback communication if local applications use sockets for interprocess communications (IPC). |