Catch Event: PDA into PowerSave

G

Guest

Dear Group,

I am developing a client-server application with pda's. I use the class
Socket to obtain a connection between server pc and client pda.

When the pda goes out of range of the WIFI network, then it is succesfully
disconnected from the server.

But when the pda goes into power save mode, it gets disconnected on client
side, but the connection seems still up in the server. When i then send data
through this socket in the server, i receive no notification that the
connection was closed. (and so the sent message is sent into the void?)

Has anyone experienced this problem?

Thanks in advance,

regards,
ruben.
 
P

Paul G. Tobey [eMVP]

If the server still thinks that the connection is live, a standard TCP
time-out will occur. The server will send a packet and wait for
acknowledgement. When no acknowledgement is returned from your client, the
server will wait a defined period of time and try again. Again, there will
be no response, so the server will wait a longer period of time. After
about 60 seconds, depending on how the server is configured, the connection
will be dropped. If that's not happening then there are only two things
that I can think of:

1. Your server is set up for some very long time-out parameters. Look up
how TCP/IP settings are controlled in your operating system manual or
online.

2. The device is not breaking the connection and is acknowledging the
packets. You'd need a network sniffer to see if this is the case.

Paul T.
 

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