G
Guest
I'm trying to make a simple little asynchronous socket server. It accepts
connections, reads and writes, but I can't make it gracefully stop listening.
listener.listen(1)
listener.beginaccept(...)
If before anyone has attempted to connect, I try to stop the listener
socket, I get nasty errors, which I can trap, but it is not obvious that it
has actually stopped or that the asynchronous callback system has been
aborted. This should be trivial. What am I missing?
connections, reads and writes, but I can't make it gracefully stop listening.
listener.listen(1)
listener.beginaccept(...)
If before anyone has attempted to connect, I try to stop the listener
socket, I get nasty errors, which I can trap, but it is not obvious that it
has actually stopped or that the asynchronous callback system has been
aborted. This should be trivial. What am I missing?