Click here to Skip to main content
13,451,940 members (48,664 online)
Click here to Skip to main content
Add your own
alternative version


32 bookmarked
Posted 16 Aug 2007

A Great Protocol Analyser

, 16 Aug 2007
Rate this:
Please Sign up or sign in to vote.
A programmable, easy-to-use protocol decoder for parsing and displaying binary package
Screenshot - 1small.gif


There are a lot of protocol analysers (such as Ethereal, sniffer tools) in the software market, but it is still difficult to find a decoder which can support custom-defined package. Here, we provide a framework of such a software, hoping it will help you a lot.


Protocol analyser is a protocol analyse tool for parsing and displaying received binary data package. With an easy-to-use interface and programmable kernel, it can support a variety of protocols such as IP based protocols (TCP, UDP, etc.), Telecommunication protocols (MTP3, ISUP, TUP, etc.), or you can define new custom decoders of non-standard or rare protocols.

Unlike other protocol analyzer tools, we create advanced features to meet future needs, not only for standard protocols, but also for user-defined protocols.
Instead of waiting long time for a new protocol decoder to be released, you can easily write a script to support new protocols in an incredibly short time by yourself.

It can be used as a message debug tool for protocol analyzers and program developers, especially for those who want to have a tool to support their own protocol or their own frame format, because no other software can be found to meet such specific requirement.

By understanding this project, you could create your own protocol decoders. Or, you could download the newest version of this software here.

Besides, this article gives a demonstration of how to compile a text script, and how to get the grammar elements. It might be useful in software development.

The Framework

Here, we give you a brief description of how to use the main class.

// 1. Load protocol script ( sample script is give in source folder )
MsgTranslater Translater;
if (!bRT)
// 2. Decode 'buf'
if (!bRT)
// 3. Save the result in the VariableItem
TVariableItem& VariableItem=Translater.GetResult();
// 4. Dump the result by hierarchy
VirtualList DataList;
COneLogFile LogFile("Dump\\Tran.txt",true);
// 5. Display the decoding result
FILE *fp;
long len;
char *buffer=new char[len+2];
delete buffer;



This is version 0.9, first workable version, and we are still improving it now, because it can become a very useful tool.
You can visit to download the newest version, the help documents and get more information (website is not always open, but don't worry, try it later).


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

China China
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralGreat work... Pin
abisval21-Aug-07 19:53
memberabisval21-Aug-07 19:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01-2016 | 2.8.180318.3 | Last Updated 16 Aug 2007
Article Copyright 2007 by shen_bd
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid