below given are the logs
it seems server is receiving the bytes its processing them but when its
sending it to the client its not receiving it
but from the logs it seems that it has set it

7782 [AnonymousIoService-2] INFO
com.sit.relay.mina.ioHandler.Smpp34IOHandler - [/192.168.2.22:1731] WRITE:
HeapBuffer[pos=0 lim=22 cap=22: 00 00 00 16 80 00 00 02 00 00 00 00 00 00 00
01 78 73 69 74 33 00]
7782 [AnonymousIoService-2] INFO
com.sit.relay.mina.ioHandler.Smpp34IOHandler - [/192.168.2.22:1731] WRITE:
HeapBuffer[pos=0 lim=0 cap=0: empty]
7782 [AnonymousIoService-2] INFO
com.sit.relay.mina.ioHandler.Smpp34IOHandler - [/192.168.2.22:1731] SENT:
HeapBuffer[pos=0 lim=22 cap=22: 00 00 00 16 80 00 00 02 00 00 00 00 00 00 00
01 78 73 69 74 33 00]
7782 [AnonymousIoService-2] INFO
com.sit.relay.mina.ioHandler.Smpp34IOHandler - [/192.168.2.22:1731] SENT:
HeapBuffer[pos=0 lim=0 cap=0: empty]
68313 [AnonymousIoService-3] INFO
com.sit.relay.mina.ioHandler.Smpp34IOHandler - [/192.168.2.22:1731] CLOSED

my encoder class has the following code

if(object instanceof PDU){
            PDU pdu = (PDU)object;

output.write(org.apache.mina.common.ByteBuffer.wrap((pdu.getData().getBuffer())));
        }

Reply via email to