So w/ help; there is now code to:
1. Make an SocketAceptorConfig that uses ProtcolFactory to register a
Decoder and adds it to the filter
2. This is bound to IoAcceptor and w/ a ProtocolHandler (and some minor
optional simple message back by ProtocolHandler).
Works great!

Now I need to:
Make a decoder that will write back a message stream for each ping (I called
it PongEncoder, the project needs to Pong back on each message - it happes
to be little edian like above 1&2).I have no idea how to invoke the encoder,
the examples are for some prior version of Mina and I am using latest
released.

A. If I register it as filter to #1 and #2 above...They are bound to the
original ProtocolHandler, that makes no sense in the Pong case, it would
have to be a different Handler?
B. If from the ProtocolHandler messageReceived I want to call the
PongEncoder ... it does not have the "out" argument. that encoder needs?

Which one and how?


This is high volume.
So for each message I decode it ... then I have to encode and pong.


Separetly, Encoder has a getMessageTypes() that docs say will inform of what
messages to handle. The examples show a sample message... but I have no idea
how to set this up; it should encode the pong back, it itself makes the
message; it that right and what to do?
So how to code the getMessageTypes()

tia,

.V

Reply via email to