forked from boostorg/beast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9a3a42a
Showing
204 changed files
with
46,608 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Set default behaviour, in case users don't have core.autocrlf set. | ||
* text=auto | ||
|
||
# Github | ||
.md text eol=lf | ||
|
||
# Visual Studio | ||
*.sln text eol=crlf | ||
*.vcproj text eol=crlf | ||
*.vcxproj text eol=crlf | ||
*.props text eol=crlf | ||
*.filters text eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
docs/ | ||
._* | ||
*.mode1v3 | ||
*.pbxuser | ||
*.perspectivev3 | ||
*.user | ||
*.ncb | ||
*.suo | ||
*.obj | ||
*.ilk | ||
*.pch | ||
*.pdb | ||
*.dep | ||
*.idb | ||
*.manifest | ||
*.manifest.res | ||
*.o | ||
*.opensdf | ||
*.d | ||
*.sdf | ||
xcuserdata | ||
contents.xcworkspacedata | ||
.DS_Store | ||
.svn | ||
profile | ||
bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
sudo: false | ||
language: cpp | ||
|
||
env: | ||
global: | ||
# Maintenance note: to move to a new version | ||
# of boost, update both BOOST_ROOT and BOOST_URL. | ||
# Note that for simplicity, BOOST_ROOT's final | ||
# namepart must match the folder name internal | ||
# to boost's .tar.gz. | ||
- BOOST_ROOT=$HOME/boost_1_60_0 | ||
- BOOST_URL='http://downloads.sourceforge.net/project/boost/boost/1.60.0/boost_1_60_0.tar.gz?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost%2F1.60.0%2Fboost_1_60_0.tar.gz&ts=1460417589&use_mirror=netix' | ||
packages: &gcc5_pkgs | ||
- gcc-5 | ||
- g++-5 | ||
- python-software-properties | ||
- protobuf-compiler | ||
- libstdc++6 | ||
- binutils-gold | ||
# Provides a backtrace if the unittests crash | ||
- gdb | ||
|
||
packages: &clang36_pkgs | ||
- clang-3.6 | ||
- g++-5 | ||
- python-software-properties | ||
- libssl-dev | ||
- libstdc++6 | ||
- binutils-gold | ||
# Provides a backtrace if the unittests crash | ||
- gdb | ||
|
||
matrix: | ||
include: | ||
- compiler: gcc | ||
env: GCC_VER=5 VARIANT=debug | ||
addons: &ao_gcc5 | ||
apt: | ||
sources: ['ubuntu-toolchain-r-test'] | ||
packages: *gcc5_pkgs | ||
|
||
- compiler: gcc | ||
env: GCC_VER=5 VARIANT=release | ||
addons: *ao_gcc5 | ||
|
||
- compiler: clang | ||
env: GCC_VER=5 VARIANT=debug CLANG_VER=3.6 | ||
addons: &ao_clang36 | ||
apt: | ||
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.6'] | ||
packages: *clang36_pkgs | ||
|
||
- compiler: clang | ||
env: GCC_VER=5 VARIANT=release CLANG_VER=3.6 | ||
addons: *ao_clang36 | ||
|
||
cache: | ||
directories: | ||
- $BOOST_ROOT | ||
|
||
before_install: | ||
- scripts/install-dependencies.sh | ||
|
||
script: | ||
- scripts/build-and-test.sh | ||
|
||
notifications: | ||
email: | ||
false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Part of Beast | ||
|
||
cmake_minimum_required (VERSION 3.5) | ||
|
||
project (Beast) | ||
|
||
set_property (GLOBAL PROPERTY USE_FOLDERS ON) | ||
|
||
if (WIN32) | ||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /wd4100 /D_SCL_SECURE_NO_WARNINGS=1 /D_CRT_SECURE_NO_WARNINGS=1") | ||
else() | ||
endif() | ||
|
||
message ("cxx Flags: " ${CMAKE_CXX_FLAGS}) | ||
|
||
macro(GroupSources curdir) | ||
file(GLOB children RELATIVE ${PROJECT_SOURCE_DIR}/${curdir} ${PROJECT_SOURCE_DIR}/${curdir}/*) | ||
foreach(child ${children}) | ||
if(IS_DIRECTORY ${PROJECT_SOURCE_DIR}/${curdir}/${child}) | ||
GroupSources(${curdir}/${child}) | ||
elseif(${child} STREQUAL "CMakeLists.txt") | ||
source_group("" FILES ${PROJECT_SOURCE_DIR}/${curdir}/${child}) | ||
else() | ||
string(REPLACE "/" "\\" groupname ${curdir}) | ||
string(REPLACE "src" "Common" groupname ${groupname}) | ||
source_group(${groupname} FILES ${PROJECT_SOURCE_DIR}/${curdir}/${child}) | ||
endif() | ||
endforeach() | ||
endmacro() | ||
|
||
include_directories (include) | ||
|
||
file(GLOB_RECURSE BEAST_INCLUDES | ||
${PROJECT_SOURCE_DIR}/include/beast/*.hpp | ||
${PROJECT_SOURCE_DIR}/include/beast/*.ipp | ||
) | ||
|
||
add_subdirectory (test) | ||
add_subdirectory (examples) | ||
|
||
#enable_testing() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# | ||
# Copyright (c) 2013-2016 Vinnie Falco (vinnie dot falco at gmail dot com) | ||
# | ||
# Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
# | ||
|
||
import os ; | ||
import feature ; | ||
import boost ; | ||
|
||
boost.use-project ; | ||
|
||
if [ os.name ] = SOLARIS | ||
{ | ||
lib socket ; | ||
lib nsl ; | ||
} | ||
else if [ os.name ] = NT | ||
{ | ||
lib ws2_32 ; | ||
lib mswsock ; | ||
} | ||
else if [ os.name ] = HPUX | ||
{ | ||
lib ipv6 ; | ||
} | ||
else if [ os.name ] = QNXNTO | ||
{ | ||
lib socket ; | ||
} | ||
else if [ os.name ] = HAIKU | ||
{ | ||
lib network ; | ||
} | ||
|
||
if [ os.name ] = NT | ||
{ | ||
lib ssl : : <name>ssleay32 ; | ||
lib crypto : : <name>libeay32 ; | ||
} | ||
else | ||
{ | ||
lib ssl ; | ||
lib crypto ; | ||
} | ||
|
||
project beast | ||
: requirements | ||
<include>. | ||
<include>./include | ||
#<use>/boost//headers | ||
<library>/boost/system//boost_system | ||
<library>/boost/filesystem//boost_filesystem | ||
<library>/boost/program_options//boost_program_options | ||
# <library>ssl | ||
# <library>crypto | ||
<define>BOOST_ALL_NO_LIB=1 | ||
<define>BOOST_SYSTEM_NO_DEPRECATED=1 | ||
<threading>multi | ||
<link>static | ||
<runtime-link>shared | ||
<debug-symbols>on | ||
<toolset>gcc:<cxxflags>-std=c++11 | ||
<toolset>gcc:<cxxflags>-Wno-unused-variable | ||
<toolset>clang:<cxxflags>-std=c++11 | ||
<toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS=1 | ||
<toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS=1 | ||
<os>LINUX:<define>_XOPEN_SOURCE=600 | ||
<os>LINUX:<define>_GNU_SOURCE=1 | ||
<os>SOLARIS:<define>_XOPEN_SOURCE=500 | ||
<os>SOLARIS:<define>__EXTENSIONS__ | ||
<os>SOLARIS:<library>socket | ||
<os>SOLARIS:<library>nsl | ||
<os>NT:<define>_WIN32_WINNT=0x0501 | ||
<os>NT,<toolset>cw:<library>ws2_32 | ||
<os>NT,<toolset>cw:<library>mswsock | ||
<os>NT,<toolset>gcc:<library>ws2_32 | ||
<os>NT,<toolset>gcc:<library>mswsock | ||
<os>NT,<toolset>gcc-cygwin:<define>__USE_W32_SOCKETS | ||
<os>HPUX,<toolset>gcc:<define>_XOPEN_SOURCE_EXTENDED | ||
<os>HPUX:<library>ipv6 | ||
<os>QNXNTO:<library>socket | ||
<os>HAIKU:<library>network | ||
: usage-requirements | ||
<include>. | ||
: | ||
build-dir bin | ||
; | ||
|
||
build-project test ; | ||
build-project examples ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Boost Software License - Version 1.0 - August 17th, 2003 | ||
|
||
Permission is hereby granted, free of charge, to any person or organization | ||
obtaining a copy of the software and accompanying documentation covered by | ||
this license (the "Software") to use, reproduce, display, distribute, | ||
execute, and transmit the Software, and to prepare derivative works of the | ||
Software, and to permit third-parties to whom the Software is furnished to | ||
do so, all subject to the following: | ||
|
||
The copyright notices in the Software and this entire statement, including | ||
the above license grant, this restriction and the following disclaimer, | ||
must be included in all copies of the Software, in whole or in part, and | ||
all derivative works of the Software, unless such copies or derivative | ||
works are solely in the form of machine-executable object code generated by | ||
a source language processor. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT | ||
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE | ||
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Beast [![Build Status](https://travis-ci.org/vinniefalco/Beast.svg?branch=master)](https://travis-ci.org/vinniefalco/Beast) | ||
|
||
Beast provides implementations of the HTTP and WebSocket protocols | ||
built on top of Boost.Asio and other parts of boost. | ||
|
||
Requirements: | ||
|
||
* Boost | ||
* C++11 or greater | ||
* OpenSSL (optional) | ||
|
||
Linking applications with beast: | ||
|
||
You need to include the .cpp file `src/beast_http_nodejs_parser.cpp` | ||
in the build script or Makefile for your program in order to link. | ||
|
||
Links: | ||
|
||
* [Home](http://vinniefalco.github.io/) | ||
* [Repository](https://github.com/vinniefalco/Beast) | ||
* [Documentation](http://vinniefalco.github.io/beast/) | ||
* [Autobahn.testsuite results](http://vinniefalco.github.io/autobahn/index.html) | ||
|
||
Please report issues or questions here: | ||
https://github.com/vinniefalco/Beast/issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
* Change build options to C++11 only | ||
* Replace Jamroot with Jamfile | ||
* Fix failing test/message.cpp | ||
* Complete allocator testing in basic_streambuf, basic_headers | ||
* Tidy up type_checks | ||
- Derive from std::integral_constant | ||
* Check DOXYGEN, GENERATIC_DOCS directives in source | ||
- See if we can include them now that xsl is fixed | ||
* Go over each header and split header material into detail and impl files | ||
* Make buffers_debug a detail | ||
* Roll header-only http parser | ||
* Define Parser concept in HTTP | ||
* melpon sandbox? | ||
* invokable unit test | ||
* trim public interface of rfc2616.h to essentials only | ||
* Use new http routines in JSONRPCClient | ||
* Remove or change http::headers alias | ||
* Do something about the methods.hpp and fields.hpp type headers | ||
* Fix index in docs | ||
* Fix integer warning in file_body.hpp | ||
* Use make_error_code in websocket to set the category right | ||
* Figure out why namespace rfc2616 is included in docs | ||
(currently disabled via GENERATING_DOCS macro) | ||
* Include Example program listings in the docs | ||
* Update for rfc7230 | ||
* HTTP parser size limit with test (configurable?) | ||
* HTTP parser trailers with test | ||
* URL parser, strong URL checking in HTTP parser | ||
* Fix method, use string instead of enum | ||
* More fine grained parser errors | ||
* Fix all the warnings in all projects/build configs | ||
* Fix bidirectional buffers iterators operator->() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
html | ||
temp | ||
reference.qbk | ||
out.txt |
Oops, something went wrong.