I have a file server that accepts connections, i would like to limit the number of connections to 45 users... The �ServerSocket (int port, int backlog)�, does not work due to OS buffers... Anybody know how to limit the number of connections, then free the connection upon user disconnect. Thx
Why don't you make a threadpool of 45 request handlers, and just notify them when there is a new request. I think the o'reilly book Java Network Programming has a pretty good example of doing this.
I have no java certifications. This makes me a bad programmer. Ignore my post.
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop