Basic questions realted to Netty usage
Kanksha
kankshatiwari at gmail.com
Sat Jul 31 06:36:02 EDT 2010
Hi
I am new to Java and NIO socket in java. I need to use netty for
establishing the client-server communication in an application which would
have multiple clients sending connection requests to the Server
Simultaneously. Also, I need to establish SSL communication. After receiving
the request from the client, the server will forward the message to another
module which will do processing and send response o server. The server will
now fwd this response back to the respective client.
After going through the examples Discard server and Secure chat client, I
have the following understanding:
For solving my purpose; At the server end I will have to write
1)Server class
2)PipelieneFactory class
3)ServerHandler extending SimpleChannelHandler and containing a static
DefaultChannelGroup channels
Flow:
Client 1 sends a request – after successful SSL handshake the channel is
added to channels
Client 2 sends a request - after successful SSL handshake the channel is
added to and so on.
Now the specific respective channels will be used to communicate with the
server until a terminate request is sent.
I have the following query here :
1)Is this understanding correct?
2)Should I be using the different channel handler for each channel or
single channel handler solve my purpose.
Thanks in advance.
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Basic-questions-realted-to-Netty-usage-tp5358044p5358044.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list