Giter VIP home page Giter VIP logo

netstring-c's People

Contributors

amonaco avatar peterscott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

netstring-c's Issues

enhanced reading

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!

Copyright and license reference

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:

netstring.c
netstring.h

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 thanks.

Just wanted to say thanks for this excellent library :)

Please add LICENSE

The library as of now, is not licensed, which makes it impossible to use. Please add a license to it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.