Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » How to express variable-length "C style" string in RAW codec?
How to express variable-length "C style" string in RAW codec? [message #1785035] Sun, 08 April 2018 13:33 Go to next message
Harald Welte is currently offline Harald WelteFriend
Messages: 50
Registered: July 2017
Location: Berlin, Germany
Member

I've been working on an implementation of SMPP v3.4 in TTCN-3, you can find it at http://git.osmocom.org/osmo-ttcn3-hacks/tree/library/SMPP_Types.ttcn?h=laforge/smpp&id=5d15118003a9b9921206d3caebd06388d6ba96e9

Everything is fine except for the fact that I now need to express a variable-length "C string" using the RAW codec and am having a hard time.

Basically, the mandatory (non-TLV) body of SMPP messages can contain variable-length string parameters terminated witha NUL (0x00) byte at the end.

Can anyone help me how to achieve this? Thanks!
Re: How to express variable-length "C style" string in RAW codec? [message #1785037 is a reply to message #1785035] Sun, 08 April 2018 14:15 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 854
Registered: January 2015
Senior Member
Hi Harald,

not with the RAW codec;
null terminated strings require additions to the generated codec code, see:

https://github.com/eclipse/titan.ProtocolModules.SMPP


which your are also welcome to use btw :)

Best regards
Elemer
Re: How to express variable-length "C style" string in RAW codec? [message #1785038 is a reply to message #1785037] Sun, 08 April 2018 14:29 Go to previous message
Harald Welte is currently offline Harald WelteFriend
Messages: 50
Registered: July 2017
Location: Berlin, Germany
Member

mh. I could swear I checked for SMPP support months ago before putting an implementation of it on my TODO list. Thanks.
Previous Topic:Text editors for TTCN-3
Next Topic:Executing ETSI Diameter Rx test cases
Goto Forum:
  


Current Time: Sun Nov 18 22:33:58 GMT 2018

Powered by FUDForum. Page generated in 0.01394 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top