Le 12/23/13 12:04 PM, Hardik Kubavat a écrit : > Hii > > I have created one acceptor and binding number of ports to that > acceptor. So Following are my question > 1) Is is good practice to implement logic or It causes harm?
What kind of 'logic' are you talking about ? > 2) We need to create different acceptor for different client? An Acceptor just accept incoming connection. It does not make sense to create an acceptor per client. It does make sens though to create a different Acceptor per protocol you want to support, but that's not mandatory (except that it's much simpler, from the encoding/decoding and message handling POV) > 3) If we change to size of Buffer runtime that other session are > affected? You *can't* change the buffer size when the Acceptor is bound. Just define the buffer size *before* the socket starts to listen to incoming messages. > 4) What is the Maximum limit to give the buffer size for session? It all depends on the OS you are running on. It also depends on the message size you are expecting to transmit. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com