Async Socket Comms + Standby/Hibernate/Turn off harddisk after xminutes of inactivity question

J

Jonas Hei

I need to implement a listener that listens on a certain UDP port.
I am trying to use Socket.BeginReceiveFrom for this purpose. In this
scenario the remote clients (hundreds of them) send most of the UDP
messages between 17:00 and 19:00 hours. Rest of the time any incoming
messages are extremely rare.
So after I execute a Socket.BeginReceiveFrom, we just wait for the
AsyncCallback to happen and this can sometimes take 20 or more hours.

The question is if during this time of inactivity, the computer (on
which listener is running) goes in standby mode (hibernate or standby or
if the turn off harddisk after x minutes of inactivity is enabled) will
the incoming UDP message wake up the computer?? Will the AsyncCallback
function be called?
 
D

Dick Grier

My best guess is that it WILL NOT wake up from hibernation. I have an
analogous system requirement (though messages appear more regularly), and I
disable hibernation on it. I don't think that hibernation would work as
intended, unless it ignored network traffic.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top