Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

force a ServerSocket to accept only one connection

843790May 4 2009 — edited May 9 2009
How can I force a ServerSocket to accept only one connection, throwing an IOException when a second client tries to connect?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 6 2009
Added on May 4 2009
18 comments
1,530 views