Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TLV Tag 1

Status
Not open for further replies.

ForeverCode

Programmer
Dec 6, 2002
41
0
0
US
Does anyone know how I would make a TLV tag?
It's suppose to be 2 byes long and its used in AOL's TOC protocol among other things. I cant seem to find any usefull information on how to make it. Im having probs. with the initial signon:
Client To Host:
4 byte FLAP version (1)
2 byte TLV Tag (1)
2 byte Normalized User Name Length
N byte Normalized User Name (NOT null terminated)

TOC:
At the bottom. Any help would be appreciated.

-Micah
 
TLV's are used a lot in for example in the GSM std.

Here the TLV is
1 byte for Tag (structure identifier)
1 byte for length (length of data or length of entire struct - don't really remember)
xx bytes for the data included in the structure.

You need a specification from AOL to create the correct structure incl. correct tags.

Have a look at for GSM specs.

/JOlesen
 
Cool, thanx. I'll check out that website. I think I was able to get what I was looking for by using htons(). The data I'm generating looks like the stuff I got by packet sniffing GAIM and other Clients. Although I dont understand why yet.

-Micah
 
has a lot fo that stuff.
a tlv in aol-im programming means:

T.ype- aol defined. word length.
L.ength- length of following data. word.
V.alue- any type of data, but normally realted to the Type
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top