-
Notifications
You must be signed in to change notification settings - Fork 4
/
README
63 lines (46 loc) · 2.12 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
SFNUL
Simple and Fast Network Utility library
© binary1248
SFNUL is provided under the
Mozilla Public License Version 2.0
(see LICENSE for details)
1. INSTALLING
SFNUL requires a compiler with C++11 support. Not all features are used, however
many newer features are used that might not be supported by all compilers even
though they claim C++11 support. Your mileage may vary.
Dependencies:
- ASIO (standalone C++11 version) provided in extlibs
- Botan provided in extlibs
- http-parser provided in extlibs
- SFML 2.x for the optional SFML synchronization example (http://sfml-dev.org/)
ASIO is provided under the Boost Software License.
Botan is provided under the Simplified BSD License.
http-parser is provided under the MIT License.
SFML is provided under the zlib License.
The build system in use is CMake (http://cmake.org/). It's available for all
major platforms.
To build, perform the following steps:
- cmake .
- make install (as root)
- On Linux: ldconfig (as root)
2. USING SFNUL IN OWN PROJECTS
To use SFNUL in your projects, you have to link to the SFNUL library (see 1.
for building). Also make sure that your compiler is able to find SFNUL's
include directory.
If you're using CMake for your project and you've properly installed SFNUL (see
1.), you can automate the process of finding SFNUL. At first copy the file
cmake/FindSFNUL.cmake to your CMake's module directory. Then add the following
to your project's CMakeLists.txt file:
find_package( SFNUL REQUIRED )
include_directories( ${SFNUL_INCLUDE_DIR} )
add_executable( my_program ... )
target_link_libraries( my_program ... ${SFNUL_LIBRARY} )
In case CMake can't find your SFNUL installation, you can still specify the
path manually by setting the SFNUL_ROOT CMake variable.
Because SFNUL makes use of the operating system's networking subsystem, be sure
to link the necessary networking libraries to your final application as well.
3. DOCUMENTATION
You can find the API documentation in the doc sub-directory. Create it with
Doxygen (http://www.stack.nl/~dimitri/doxygen/).
4. CONTACT
The AUTHORS file lists contributors with contact information.