Alternative Header to BASE1Header for VAPChannel

70 views
Skip to first unread message

Nilushi

unread,
Feb 10, 2015, 1:01:11 AM2/10/15
to jpos-...@googlegroups.com
Hi,

We are using VAPChannel because we need to send/receive idle messages (messages of 4 bytes '0000'). However, the BASE1Header used in VAPChannel doesn't meet our specs so we wrote a custom header. Is there a way of using this alternative header without having to override most of the methods in VAPChannel? We have tried to go down this road and it's quite messy. Or does anyone know of a different approach? We looked at using the method setDynamicHeader but it doesn't seem to get around the problem.

Thanks,
Nilushi

Alejandro Revilla

unread,
Feb 10, 2015, 10:51:02 AM2/10/15
to jPOS Users
You say four-bytes length but VAPChannel uses 2 bytes, I guess you mean 4 nibbles. 

I would use NACChannel instead.




--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
 
Join us in IRC at http://webchat.freenode.net/?channels=jpos
 
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/48184770-6bf5-4bbb-9080-e65140e402b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nilushi

unread,
Feb 15, 2015, 9:23:55 PM2/15/15
to jpos-...@googlegroups.com
Hi Alejandro,

Thank you for your reply. Turns out we need to send '0000' in ASCII format, so we used ASCIIChannel instead. This allows us to get around our custom header problem.

Thanks again,
Nilushi

Alejandro Revilla

unread,
Feb 16, 2015, 6:27:29 AM2/16/15
to jPOS Users
Awesome. Good to know it worked for you.


Reply all
Reply to author
Forward
0 new messages