users@grizzly.java.net

Help getting started

From: Tom Unger <tkunger_at_tumtum.com>
Date: Mon, 21 Jan 2008 06:33:30 -0800

I'm considering using the Grizzly framework to implement some non-HTTP
protocols, starting with LPR (printing). We may add some HTTP based
services in the future and I think that Grizzly will provide a useful
framework for implementing the communications we need. I've read
reference to components which I think I should use to implement my
protocols, but so far am pretty clueless as to how to put together a
program. I've been unable to find a clear explanation of how to
implement a simple non-http protocol. The sample code I've read (and
stepped through) does non-obvious things. With out understanding the
intention of the API I'll probably write code that uses it in
appropriately and end up with a poor implementation.

So far I've downloaded the most recent code (via svn), compiled it in
eclipse. Browsed powerpoint slides from several presentations, a few
other short articles, the javadoc, and wrote a simple example program
which receives a connection and some data.

The LPR protocol is pretty simple. The client connects, sends data,
and the server sends a response. Most requests require one receive-
respond cycle but submitting a print job requires several receive-
respond cycles. After the request is complete the connection is closed.

Can you give me any pointers as to how to proceed?

Thanks,

Tom Unger
Seattle