What is a TLV type in Visual Basic?

This forum is for general support of Xbase++
Post Reply
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

What is a TLV type in Visual Basic?

#1 Post by rdonnay »

I'm writing a SMPP system that uses an ActiveX control for SMPP sending and receiving.

I'm converting sample code that was written in Visual Basic.
I have the sending code converted but I don't understand something about the receiving code.

Dim objTlvStatus As Tlv
Dim objTlvMessageRef As Tlv

I don't know what a Tlv type is.
Can anyone point me in the right direction?
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: What is a TLV type in Visual Basic?

#2 Post by rdonnay »

Nevermind. I realized I don't need to know this based on the way the code is implemented.
The automation object is simply stored to a variable which is later passed to another method.
The eXpress train is coming - and it has more cars.

messaoudlazhar
Posts: 42
Joined: Mon Dec 23, 2013 2:10 pm
Contact:

Re: What is a TLV type in Visual Basic?

#3 Post by messaoudlazhar »

TLV is Tag-length-value encoding. Often it is better referred to by it's original name, type-length-value.

The first field is the "type" of data being processed, the second field specifies the "length" of the value, the third field contains a "value".

See : https://en.wikipedia.org/wiki/Type-length-value

This is a good method for storing binary data in a sequential read file.

Best Regards

Messaoud Mohamed Lazhar

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: What is a TLV type in Visual Basic?

#4 Post by rdonnay »

TLV is Tag-length-value encoding
Thanks for that explanation.
The eXpress train is coming - and it has more cars.

Post Reply