Skip to content

javascript verison of luismartingarcia's Protcol - An ASCII Header Generator for Network Protocols with convenient GUI page

License

Notifications You must be signed in to change notification settings

leommxj/protocoljs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

protocolJS

javascript verison of luismartingarcia's Protcol - An ASCII Header Generator for Network Protocols with convenient GUI page

luismartingarcia's Protcol repo: protocol

usage

library

protcol description to ascii Header

<script src="./parser.js"></script>
<script src="./protocol.js"></script>
<script>
	protocoljs.parser("Type:8,Code:8,Checksum:16,Identifier:16,Sequence Number:16,Data:64");
	var result = protocoljs.toString();
	console.log(result);
</script>

from c string

WIP

> struct_str = "struct SIMPLE\
{\
    int a;\
    char b;\
    char c[20];\
};"
< "struct SIMPLE{    int a;    char b;    char c[20];};"
> protocoljs.fromCStruct(struct_str, "ILP32")
< "a:32,b:8,c:160"

gui tool

online version

About

javascript verison of luismartingarcia's Protcol - An ASCII Header Generator for Network Protocols with convenient GUI page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published