Recommendations
"이희승 (Trustin Lee)"
trustin at gmail.com
Thu Jun 25 07:11:47 EDT 2009
Hi David,
I would rather define a set of message types and write more strictly
typed decoder and encoder, just like I did for HTTP. The decoder will
be somewhat complicated, but it worths time and complexity because your
final handler will look simple and beautiful thanks to separation of
concerns. I'd recommend you to give ReplayingDecoder a try. HTTP
decoder was implemented much sooner than I expected thanks to
ReplayingDecoder.
HTH,
Trustin
On 2009-06-24 오전 1:56, David Hoyt wrote:
> I’m still familiarizing myself w/ the netty API. I love what I see and I
> have all the basics down and have implemented a custom, binary protocol
> – but now it comes down to knowing the available classes. How would you
> recommend implementing a protocol such as POP? Here’s an example POP3
> session:
> http://coewww.rutgers.edu/www1/linuxclass2005/lessons/lesson12/sec_6.html
>
> Are there any classes that would allow me to react on a line-by-line
> basis + maintain state b/t messages? I know I’ll need a string
> decoder/encoder and then I could parse out the messages myself – but if
> there’s already something out there I could use, that’d be great.
>
> Thanks!
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
--
— Trustin Lee, http://gleamynode.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20090625/4c86fb8c/attachment.bin
More information about the netty-users
mailing list