dev@grizzly.java.net

TCP Responses to Client

From: Mark Macumber <mark.macumber_at_gmail.com>
Date: Wed, 23 Jul 2008 15:07:41 +1000

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