Can a server written using Netty handle requests from non-netty based clients

Marc-André Laverdière marcandre.laverdiere at gmail.com
Tue Jul 20 12:14:27 EDT 2010


Well, its pretty simple.

Netty doesn't force you to have any given protocol or message format.
So you can design your own protocol and netty can 'talk' it. As long
as you code your other peer to 'speak' the exact same protocol and
message format, then they can have a conversation.

So you must define your state machine and your message. Example:
Bytes 0-1 are the length
Byte 2 is the message type
Bytes 3-6 are the sequence number
...

Marc-André LAVERDIÈRE
"Perseverance must finish its work so that you may be mature and
complete, not lacking anything." -James 1:4
mlaverd.theunixplace.com/blog

 /"\
 \ /    ASCII Ribbon Campaign
  X      against HTML e-mail
 / \



2010/7/19 Noopur Tiwari <noopur_tiwari at persistent.co.in>:
>
> Hey Thanks Norman,
>
> Can u please elaborate a little explaining what exactly the client will have to adhere to.
>
> Bets regards,
> Noopur
>
> From: Norman Maurer [via Netty Forums and Mailing Lists] [mailto:ml-node+5308578-137546763-606547 at n2.nabble.com]
> Sent: Sunday, July 18, 2010 5:31 PM
> To: Noopur Tiwari
> Subject: Re: Can a server written using Netty handle requests from non-netty based clients
>
> To make it short..... Yes. As long as they know how to handle the protocol
>
> Bye
> Norman
> 2010/7/18, Noopur Tiwari <[hidden email]</user/SendEmail.jtp?type=node&node=5308578&i=0>>:
>
>>
>> Hi All,
>>
>> I have a business requirement where I have to write a Server for secured NIO
>> communication.After going through the documentation I am sure I can use
>> Netty for writing my Server side implemetation, but the constraint here is
>> that I cannot impose a compulsion on clients to essentially make use of
>> Netty. Just wanted to know that can a server written using Netty handle
>> requests from non-netty (but NIO) based clients a well.
>> Thanks in advance.
>> --
>> View this message in context:
>> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Can-a-server-written-using-Netty-handle-requests-from-non-netty-based-clients-tp5308472p5308472.html<http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Can-a-server-written-using-Netty-handle-requests-from-non-netty-based-clients-tp5308472p5308472.html?by-user=t>
>> Sent from the Netty User Group mailing list archive at Nabble.com.
>> _______________________________________________
>> netty-users mailing list
>> [hidden email]</user/SendEmail.jtp?type=node&node=5308578&i=1>
>> https://lists.jboss.org/mailman/listinfo/netty-users
>>
> _______________________________________________
> netty-users mailing list
> [hidden email]</user/SendEmail.jtp?type=node&node=5308578&i=2>
> https://lists.jboss.org/mailman/listinfo/netty-users
>
> ________________________________
> View message @ http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Can-a-server-written-using-Netty-handle-requests-from-non-netty-based-clients-tp5308472p5308578.html
> To unsubscribe from Can a server written using Netty handle requests from non-netty based clients, click here<http://netty-forums-and-mailing-lists.685743.n2.nabble.com/subscriptions/Unsubscribe.jtp?code=bm9vcHVyX3Rpd2FyaUBwZXJzaXN0ZW50LmNvLmlufDUzMDg0NzJ8LTIxMTE4OTQ4MTg=>.
>
>
> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
>
> --
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Can-a-server-written-using-Netty-handle-requests-from-non-netty-based-clients-tp5308472p5311206.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>



More information about the netty-users mailing list