Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I have the networking stack reset an activity timer when data is actually being transferred to a remote system, rather than when a socket is connected?

0
Posted

Can I have the networking stack reset an activity timer when data is actually being transferred to a remote system, rather than when a socket is connected?

0

Some OEMs may be more interested in having the Power Manager know applications are actively using sockets than they are in having it know when sockets are connected. The networking stack does not provide direct support for this. However, OEMs can create a thread that periodically polls the GetTcpStatistics() and GetUdpStatistics() to determine if TCP segments or UDP datagrams are being transmitted or received. If they are, this thread could reset an activity timer. This thread could be implemented as an installable device driver, as part of the Power Manager, or as part of an application.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123