This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes server can not accept all the clients connection request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "server can not accept all the clients connection request" Watch "server can not accept all the clients connection request" New topic
Author

server can not accept all the clients connection request

Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
Hi All,

I am implementing NIO and using socket to make connections between the server and the clients , I have got some code
from some sites and from some forums(including this forum) , the code works but the problem is that sometimes some of the clients can not connect to the server
and the server application ignores such connections, can any one Could tell me what is the wrong in the code so that we can enhance the performance of the application
and all clients can connect to the server.

TCPProtocolManager.java



TCPServer.java



Main.java



thanks
Pushkar Choudhary
Rancher

Joined: May 21, 2006
Posts: 425

Please edit your name to use a real first and last name. See the Naming Policy for more details.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Pushkar, thanks for helping me out


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
Hi Pushkar Choudhary & Rob Prime ,

Thanks for the reply. I have not noticed that rules . but anyhow I have changed my first name and last name.
Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
Hi All,

Any reply for my post...................
Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
Hi All,

Any reply for my post...................
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: server can not accept all the clients connection request
 
Similar Threads
java.net.BindException: Address already in use
java.io.IOException: Broken pipe
ServerSocketChannel.accept() seems to create a random port to send data to?
NIO Channels Object Transfer
non blocking socket