• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

boost/H19-Jul-2018-19,13113,545

deps/H19-Jul-2018-

libs/H19-Jul-2018-16,80011,717

.clang-formatH A D19-Jul-20181.2 KiB3938

.gitignoreH A D19-Jul-2018169 1716

.gitmodulesH A D19-Jul-2018433 1312

.travis.ymlH A D19-Jul-20182.9 KiB6261

.ycm_extra_conf.pyH A D19-Jul-20182.2 KiB8053

DoxyfileH A D19-Jul-2018101.8 KiB2,3851,842

README.rstH A D19-Jul-20184.9 KiB145102

build.shH A D19-Jul-2018394 1613

code_of_conduct.mdH A D19-Jul-20183.2 KiB7758

cppnetlibConfig.cmake.inH A D19-Jul-2018903 2521

cppnetlibConfigVersion.cmake.inH A D19-Jul-2018388 1110

install-boost.shH A D19-Jul-2018626 1411

package.shH A D19-Jul-20182.1 KiB4827

README.rst

1C++ Network Library
2===================
3
4Modern C++ network programming libraries.
5
6.. image:: https://travis-ci.org/cpp-netlib/cpp-netlib.svg?branch=master
7    :target: https://travis-ci.org/cpp-netlib/cpp-netlib
8
9.. image:: https://scan.coverity.com/projects/6714/badge.svg
10    :target: https://scan.coverity.com/projects/cpp-netlib
11
12Join us on Slack: http://slack.cpp-netlib.org/
13
14Subscribe to the mailing list: https://groups.google.com/forum/#!forum/cpp-netlib
15
16Downloading cpp-netlib
17----------------------
18
19You can find official release packages of the library at::
20
21    http://github.com/cpp-netlib/cpp-netlib/downloads
22
23If you want the latest code from the master branch of the project, you can
24follow these instructions for cloning the project repository::
25
26    $ git clone https://github.com/cpp-netlib/cpp-netlib
27    $ cd cpp-netlib
28    $ git submodule init
29    $ git submodule update
30
31Introduction
32------------
33
34cpp-netlib is a collection of network related routines/implementations
35geared towards providing a robust cross-platform networking library.
36cpp-netlib offers the following implementations:
37
38  *  Common Message Type -- A generic message type which can be used
39     to encapsulate and store message related information, used by all
40     network implementations as the primary means of data exchange.
41  *  Network protocol message parsers -- A collection of parsers which
42     generate message objects from strings.
43  *  Adapters and Wrappers -- A collection of Adapters and wrappers aimed
44     towards making the message type STL friendly.
45  *  Network protocol client and server implementations -- A collection
46     of network protocol implementations that include embeddable client
47     and server types.
48
49This library is released under the Boost Software License (please see
50http://boost.org/LICENSE_1_0.txt or the accompanying LICENSE_1_0.txt file
51for the full text.
52
53Building and Installing
54-----------------------
55
56To build the libraries you will need to have CMake version 2.8 or higher
57installed appropriately in your system.
58
59::
60
61    $ cmake --version
62    cmake version 2.8.1
63
64It is recommended that you build cpp-netlib outside of the source directory, to
65avoid having issues with CMake generated files polluting the source directory::
66
67    $ mkdir ~/cpp-netlib-build
68    $ cd ~/cpp-netlib-build
69    $ cmake -DCMAKE_BUILD_TYPE=Debug     \
70    >       -DCMAKE_C_COMPILER=clang     \
71    >       -DCMAKE_CXX_COMPILER=clang++ \
72    >       $HOME/cpp-netlib    # we're assuming this is where cpp-netlib is.
73
74Once CMake is done with generating the Makefiles and configuring the project,
75you can now build the tests and run them::
76
77    $ cd ~/cpp-netlib-build
78    $ make
79    $ make test
80
81If for some reason some of the tests fail, you can send the files in
82``Testing/Temporary/`` as attachments to the cpp-netlib `developers mailing
83list`_.
84
85.. _`developers mailing list`: cpp-netlib@googlegroups.com
86
87Running Tests
88-------------
89
90If you want to run the tests that come with cpp-netlib, there are a few things
91you will need. These are:
92
93  * A compiler (GCC 5.x, Clang 3.7, MSVC 2015)
94  * A build tool (CMake_ is required)
95  * OpenSSL headers (optional)
96
97.. note:: This assumes that you have cpp-netlib at the top-level of
98          your home directory.
99.. _CMake: https://cmake.org/
100
101Hacking on cpp-netlib
102---------------------
103
104cpp-netlib uses git_ for tracking work, and is hosted on GitHub_.
105cpp-netlib is hosted on GitHub_ following the GitHub recommended practice of
106forking the repository and submitting pull requests to the source repository.
107You can read more about the forking_ process and submitting `pull requests`_ if
108you're not familiar with either process yet. cpp-netib follows the GitHub pull
109request model for accepting patches. You can read more about the process at
110http://cpp-netlib.org/process.html#pull-requests.
111
112.. _git: http://git-scm.com/
113.. _GitHub: http://github.com/
114.. _forking: http://help.github.com/forking/
115.. _`pull requests`: http://help.github.com/pull-requests/
116
117Because cpp-netlib is released under the `Boost Software License`_ it is
118recommended that any file you make changes to bear your copyright notice
119alongside the original authors' copyright notices on the file. Typically the
120copyright notices are at the top of each file in the project.
121
122.. _`Boost Software License`: http://www.boost.org/LICENSE_1_0.txt
123
124You can read about the cpp-netlib style guide at
125http://cpp-netlib.org/style-guide.html.
126
127The main "upstream" repository is at http://github.com/cpp-netlib/cpp-netlib.
128
129Contact and Support
130-------------------
131
132In case you have any questions or would like to make feature requests, you can
133contact the development team through the `developers mailing list`_
134or by filing issues at http://github.com/cpp-netlib/cpp-netlib/issues.
135
136Join us on Slack: http://slack.cpp-netlib.org/
137
138.. _`developers mailing list`: cpp-netlib@googlegroups.com
139
140You can reach the maintainers of the project through::
141
142    Dean Michael Berris (dberris@google.com)
143
144    Glyn Matthews (glyn.matthews@gmail.com)
145