G
Guest
I am programming a server and a client for a PLC that runs under WinCE .NET
4.2pro.
I want to detect on client side when the server does a close.
So far I tried it like this:
(Client)
I put the actual socket into a fdset and check it with select for
WRITEability.
Is this correct??
In my case, after the server has closed, select returns 1 (instead of -1)
and when I look at the fdset, then is there the actual socket!! And not
modified with -1!
Or have I an incorrect implementation of WinSock???? Because when I check on
server side a Socket positiv for READability, then I know that a client is
"knocking" on the server's listener Port. In this case select works correct.
*please excuse my bad english* I hope you know what I mean... ;-)
4.2pro.
I want to detect on client side when the server does a close.
So far I tried it like this:
(Client)
I put the actual socket into a fdset and check it with select for
WRITEability.
Is this correct??
In my case, after the server has closed, select returns 1 (instead of -1)
and when I look at the fdset, then is there the actual socket!! And not
modified with -1!
Or have I an incorrect implementation of WinSock???? Because when I check on
server side a Socket positiv for READability, then I know that a client is
"knocking" on the server's listener Port. In this case select works correct.
*please excuse my bad english* I hope you know what I mean... ;-)