dev@grizzly.java.net

Re: UDP client built on top of grizzly framework

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Mon, 20 Dec 2010 12:07:28 +0100

Hi Stefano,

> As a starting point I'd like to start from the very last release of
> the framework and I found it to be the the 2.0.0-RC3, after the
> downloading (from
> http://download.java.net/maven/glassfish/org/glassfish/grizzly/grizzly-framework/2.0.0-RC3/)
> of both the source jar and the bin jar I didn't find any of the
> examples saw in all the other releases, at least I see a jar with all
> the tests but they're already compiled.
You can find them here:
http://download.java.net/maven/glassfish/org/glassfish/grizzly/samples/grizzly-framework-samples/2.0.0-RC3/



> Unfortunately the example from the svn of the grizzly project 2.0 at
> https://svn.java.net/svn/grizzly~svn/2dot0, has some errors.
hmm, probably it should be
for 2.0 trunk: svn co https://svn.java.net/svn/grizzly~svn/branches/
2dot0/code
for 2.0-RC3: svn co https://svn.java.net/svn/grizzly~svn/tags/2_0_0-RC3


> That is, it seems the version on the svn repository has been subjected
> to refactoring before the promotion to the RC tag.
>
> As an example in the EchoClient
> (http://java.net/projects/grizzly/sources/svn/content/branches/2dot0/code/samples/framework-samples/src/main/java/org/glassfish/grizzly/samples/udpecho/EchoClient.java?rev=5520
> )
> class we can see a call to the
> com.sun.grizzly.Connection.configureStandalone(boolean) method which
> is not available for the interface com.sun.grizzly.Connection<L>.
>
> So I'd like to know the way for starting on coding a simple UDP
> client.

I've just changed the sample code, so please use the same link you've
already used.
http://java.net/projects/grizzly/sources/svn/content/branches/2dot0/code/samples/framework-samples/src/main/java/org/glassfish/grizzly/samples/udpecho/EchoClient.java

There should be better sample (I hope :))

If you have more questions - please ask. And thank you for the heads
up regarding the udp sample. Standalone mode is not something we'd
advice to follow.

Thanks.

WBR,
Alexey.

> TIA
>
> Stefano.
>
> ----------------
> Now playing: Three Doors Down - Smack