Skip to content

C++ header library for network streams

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

clambers/netstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NetStream

NetStream is a C++ header library that provides a set of classes for working with network sockets and connections. It acts as a drop-in extension for the standard IOStream classes, and tries to emulate their architecture and functionality. As such, it shares IOStream's strengths and weaknesses. NetStream supports Windows, OSX, and GNU/Linux.

Here's some sample code that spits out my favorite website:

net::httpstream conn("zombo.com");

net::httprequest req;
req.add_header("Host", "zombo.com");
req.add_header("Accept", "text/html");

conn << req;

std::cout << conn.rdbuf() << std::endl;

Using NetStream is easy: just add the single header to your project and you're done. NetStream is LGPL, so even proprietary software can use it, just make sure to submit any meaningful changes you make to the header itself upstream.

NetStream is currently under heavy initial development, and as such is extremely unstable. It should not be used for production software.


© 2015 Chris Lamberson
Licensed under the LGPLv3.

About

C++ header library for network streams

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages