users@grizzly.java.net

Re: Examples

From: Erik Svensson <erik.svensson_at_six.se>
Date: Thu, 24 Jan 2008 14:47:49 +0100

On 1/23/08 4:11 PM, "Peter Murray" <peter.murray_at_FXALL.com> wrote:

> Erik,
> Can you post your working code?
> There is a grizzly/examples in the SVN tree. Can we start putting
> examples which we develop in this tree or is there another place to
> put "public" examples?

Ok, here's a very simple echo-client. It takes a 100 byte buffer, puts
the current nanoTime in it, pads it out and sends it to an echo server (also
implemented with grizzly).
It reads the return and measures the elapsed time, clears the buffer and
starts over again.

cheers

Erik Svensson, SIX AB