Hi,
I created a server using netty.
However , whenever i try to send a tcp iso9593 ascii channel jpos packet,
there is no request received on server side.
can anyone please help regarding this ?
This is how the decoder for iso9593 looks like:
public class Iso8583Decoder extends ByteToMessageDecoder {
private final MessageFactory messageFactory;
public Iso8583Decoder(MessageFactory messageFactory) {
this.messageFactory = messageFactory;
}
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf byteBuf, List
out) throws Exception {
//message body starts immediately, no length header
if (!byteBuf.isReadable()) {
return;
}
byte[] bytes = new byte[byteBuf.readableBytes()];
byteBuf.readBytes(bytes);
final IsoMessage isoMessage = messageFactory.parseMessage(bytes, 0);
if (isoMessage != null) {
//noinspection unchecked
out.add(isoMessage);
} else {
throw new ParseException("Can't parse ISO8583 message", 0);
}
}
}
--
You received this message because you are subscribed to the Google Groups
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/netty/08b7a8df-e6a1-459f-83c9-36c0727a6281%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.