peterscott / netstring-c Goto Github PK
View Code? Open in Web Editor NEWNetstring parsing in C
Netstring parsing in C
Hi!
Thank you for sharing your code!
I understand that netstrings are used mainly as lists, so I thought that we could enhance the sequential reading of strings in a netstring list.
In the current code we don't know how much remaining bytes are there to call netstring_read
again. Off course we can calculate it but I guess that less code is better.
I forked the repo and made some changes. With it we can iterate a list with code like this:
while(netstring_read(&base, &size, &str, &len) == 0) {
do_something(str, len);
}
If you think it is useful I can make a pull request.
It will break the current ABI, so it can have a new version.
Thank you again!
Hi @PeterScott,
I used your code to buid a module in this project.
The code was cosmetically modified to fit with the project style. Here the files:
We'd like to add the corresponding copyright and license headers to these files. I know the the project is Public Domain. May you please indicate which would be the correct text we should add?
Thanks a lot.
Just wanted to say thanks for this excellent library :)
The library as of now, is not licensed, which makes it impossible to use. Please add a license to it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.