On Thu, Mar 11, 2010 at 10:39 AM, Abdul Khaliq <[email protected]> wrote:
>
> Yes i am trying to serlize the object upon the message received event in the
> Handler class like "buffer.putObject(pojoObject)", but i don't know if it is
> the right way of doing it? and how no message received event is raised on
> the client side. Please guide me.
>
>   @Override
>    public void messageReceived(IoSession session, Object message)
>            throws Exception {
>
>        if (message instanceof IoBuffer) {
>            IoBuffer buffer = (IoBuffer) message;
>            buffer.putObject(new pojo.POJO());
>            System.out.print("Object Attached and Sent");
>        }
>    }
>
> Abdul Khaliq

This event will be generated when your Server sends out a message to
your client. Why don't you try to first play around with the UDP
example first
and then move onto your code. It will help you understand how things
work. I don't remember but the example doesn't send back a response to
the client?

If you object size is greator than MTU, you will receive multiple
packets at server, and you need to handle that.

Reply via email to