Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Making a socket only accept one connection

0 views
Skip to first unread message

Omion

unread,
Nov 12, 2006, 1:48:26 AM11/12/06
to
I'm making a simple server-like program, but I only want it to accept
one connection at a time. All the other ones should give some exception
on the client side. The ways I've tried it will allow any number to
connect, but only one actually gets data (not too useful, since I can't
tell the other clients to do something else in the meantime)

Is there an easy way to do this?

0 new messages