dev@grizzly.java.net

Re: TCP Responses to Client

From: John ROM <snake-john_at_gmx.de>
Date: Wed, 23 Jul 2008 09:02:07 +0200

Hello Mark,
if you want maybe you could post your Jmeter code to the users_at_grizzly.dev.java.net ?

I could take a look there and I think some other users might then have sugesstions for you..

The best solution depends on your protocol:

for many protocols it often works to just stay on the protocoChain transaction
and call
com.sun.grizzly.util.OutputWriter.flushChannel when you have read in the client message.
Maybe context.getAsyncQueueWritable().writeToAsyncQueue(byteBuffer) would also make
sense. it really depends on your server code (-:

Many Greetings John


-------- Original-Nachricht --------
> Datum: Wed, 23 Jul 2008 15:07:41 +1000
> Von: "Mark Macumber" <mark.macumber_at_gmail.com>
> An: dev_at_grizzly.dev.java.net
> Betreff: TCP Responses to Client

> Hi All,
>
> I am trying to get a TCP server running to parse my own protocol, which I
> have since found many examples on. But one thing I am currently stuck on
> is
> how to write a response to the client that connected.
>
> I am using JMeter to connect a TCP session and send some data, and I seem
> to
> never get a response to to any message that I send. This is largely due to
> the fact that I dont know where exactly to write anything to the client.
> Do
> I do it in one of the protocolfilters? Or do I have to write something to
> a
> SelectableChannel?
>
> Any help is greatly appreciated.
>
> Cheers,
> Mark

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx