kelvin wrote:
> Finally, our system would connect to a NAC vendor to receive the
> iso8583 message. The protocol used would be: [2byte Message length]
> +[5byte TPDU]+[iso 8583 message], so I think the NACChannel would be a
> good starting point for my work.(Please comment if I am wrong).
Can you give the format of the length (binary and endian, character etc)?
Your vendors way of indicating the message length might not match
NACChannels...
> However, I got another problem: How can I set the packager dynamically
> according to the content of TPDU? Can you give me some hints?
1. Look at the source.
2. Look at the source again 8).
3. extend NACChannel - if that matches your network protocol, the
override getDynamicPackager(header, b) to return the packager based upon
the header (5 byte TPDU) content and/or the binary message content.
--
Mark