Hi -
I've written an app that, among other things, accepts a telnet connection (made via the "telnet" command from a terminal) and converses with it. I'd like to make this work so that only one client at a time can connect. Currently, when a second user tries to connect, the incoming messages get mixed up and lots of unpredictable results ensue.
Can someone point me in the right direction on how to lock out any subsequent connection attempts when someone already has a connection?
Thanks.
Oh, this is running SMX, not UNIX, but it has a very UNIX-like socket programming interface.