docs

Documentation for Net Library

NET

Net is a High-level & Efficient Modern C++ library for Network Programming.

It uses standard library functions with no other dependencies and provides a safer yet expressive version of original Berkeley Sockets API. Common mistakes are abstracted away giving a boost in productivity for library user.

A simple iterative TCP/IPv4 server is given below -

#include "socket.hpp"
#include <iostream>

using namespace net;

int main()
{
    try {
        Socket s(Domain::IPv4, Type::TCP);
        s.start("127.0.0.1", 24000);
        while (true) {
            auto peer = s.accept();
            auto msg  = peer.recv(15);
            std::cout << msg << "\n";
        }
    } catch (std::exception &e) {
        std::cerr << e.what() << "\n";
    }
}

Related Repositories

uwsgi-docs

uwsgi-docs

Official uWSGI docs, examples, tutorials, tips and tricks ...

slack-api-docs

slack-api-docs

API Docs for Slack.com ...

docs

docs

Laravel 的中文翻译. Chinese Translation of Laravel docs http://laravel-china.org/docs ...

gulp-docs-zh-cn

gulp-docs-zh-cn

:book: gulp docs in Chinese ...

cordova-docs

cordova-docs

Mirror of Apache Cordova docs ...