B
Bob L.
Hi, everyone,
I am trying to test a client/server solution that uses the .NET Socket class
(blocking mode on the server). I need the server to be able to verify that a
socket is still valid in case the client app drops the connection (i.e. the
client app crashes). The Poll method and the Available and Connected
properties always return the same value regardless if the connection is
valid or not. Using the Receive(w/ Peek) method also does not work since it
waits for incoming data if the connection is valid. Any suggestions on how
to efficiently check the connection?
Thanks,
Bob L.
I am trying to test a client/server solution that uses the .NET Socket class
(blocking mode on the server). I need the server to be able to verify that a
socket is still valid in case the client app drops the connection (i.e. the
client app crashes). The Poll method and the Available and Connected
properties always return the same value regardless if the connection is
valid or not. Using the Receive(w/ Peek) method also does not work since it
waits for incoming data if the connection is valid. Any suggestions on how
to efficiently check the connection?
Thanks,
Bob L.