dev@grizzly.java.net

Re: Grizzly framework-samples Update

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 01 Jul 2008 10:19:33 -0400

Salut,

John ROM wrote:
> Hi Jeanfrancois,

sorry for the delay....it is an Holiday in Canada.

> attached you find an update of CustomProtocolParser.java.
> Could you please delete AbstractCustomProtocolParser.java

Sure.

>
> Actually it is a complete Client Server Example using a Custom Protocol
> build with Grizzly Framework.

This ia great! This is a great code contribution!


>
> For a "silly" Demo see Example_1_Server.java and Example_1_Client.java
>
> Behind the scenes a Custom Protocol is implemented which is a little bit
> like GIOP (laugh just some ideas which led to RequestMessage,ReplyMessage,FragmentMessage)
>
> For Client Server Communication only one open Connection is needed. A client inits
> a Connection (firewall friendly) but the server can send messages at any time to any client.
>
> All writes are done with AsyncWriter which means that always a full message is send
> from Endpoint to Endpoint
>
> But since Message Size is fixed 8192 bytes, bigger logical data gets fragmented to
> FragmentMessages the Connection should be very responsive.
>
> The fixed 8192 size also should be nice to memory when large data amounts are send.
>
> Hopefully this protocol and supporting classes are general purpose enough
> so that somebody needing such a protocol can easly plug into the samples
>
> I tested the classes and everything works but still have some work todo.
> (for example your favorite theme avoiding memory leak when attaching to selectionKey,
> further docs,ssl,nicer examples, something like suspendableFilter)

:-) :-) :-)

Next step fir us is to write a tutorial that explain the code...but
that's a really really good start! Will commit the work today.

Thanks!!

-- jeanfrancois


>
>
> Many Greetings
> John
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net