C
Claire
Hi
Im writing an application using the above controls in blocking mode. Ive not
used them before and I'm more used to asynchronous socket programming
utilizing socket events.
As there are no events associated to the controls, I'm wondering how i
monitor connection state.
On my server side, i loop through a thread that tests the DataAvailable
flag.
On client side, i opened the connection then closed it again after some time
by calling Close() on the socket.
I expected an exception on the server side when calling DataAvailable, but
it just kept looping happily.
I know there are graceful and nongraceful disconnections between sockets,
it's difficult to trap the non graceful ones but in this case I had closed
the client side gracefully.
The server side application is designed for multiple socket connections and
i'd like some pointers to understanding disconnections better.
thank you
Im writing an application using the above controls in blocking mode. Ive not
used them before and I'm more used to asynchronous socket programming
utilizing socket events.
As there are no events associated to the controls, I'm wondering how i
monitor connection state.
On my server side, i loop through a thread that tests the DataAvailable
flag.
On client side, i opened the connection then closed it again after some time
by calling Close() on the socket.
I expected an exception on the server side when calling DataAvailable, but
it just kept looping happily.
I know there are graceful and nongraceful disconnections between sockets,
it's difficult to trap the non graceful ones but in this case I had closed
the client side gracefully.
The server side application is designed for multiple socket connections and
i'd like some pointers to understanding disconnections better.
thank you