├── test
├── extern
│ └── zlib-1.2.11
│ │ ├── contrib
│ │ ├── blast
│ │ │ ├── test.txt
│ │ │ ├── README
│ │ │ ├── test.pk
│ │ │ └── Makefile
│ │ ├── infback9
│ │ │ └── README
│ │ ├── puff
│ │ │ ├── zeros.raw
│ │ │ └── puff.h
│ │ ├── masmx64
│ │ │ ├── bld_ml64.bat
│ │ │ └── readme.txt
│ │ ├── dotzlib
│ │ │ ├── DotZLib.chm
│ │ │ ├── DotZLib
│ │ │ │ ├── CodecBase.cs
│ │ │ │ ├── Deflater.cs
│ │ │ │ ├── DotZLib.cs
│ │ │ │ ├── Inflater.cs
│ │ │ │ ├── GZipStream.cs
│ │ │ │ ├── ChecksumImpl.cs
│ │ │ │ └── CircularBuffer.cs
│ │ │ ├── DotZLib.sln
│ │ │ ├── DotZLib.build
│ │ │ └── LICENSE_1_0.txt
│ │ ├── masmx86
│ │ │ ├── bld_ml32.bat
│ │ │ └── readme.txt
│ │ ├── minizip
│ │ │ ├── MiniZip64_Changes.txt
│ │ │ ├── minizip.pc.in
│ │ │ ├── Makefile
│ │ │ ├── mztools.h
│ │ │ ├── configure.ac
│ │ │ ├── iowin32.h
│ │ │ ├── make_vms.com
│ │ │ ├── Makefile.am
│ │ │ └── minizip.1
│ │ ├── delphi
│ │ │ └── ZLibConst.pas
│ │ ├── testzlib
│ │ │ └── testzlib.txt
│ │ ├── untgz
│ │ │ ├── Makefile
│ │ │ └── Makefile.msc
│ │ ├── iostream3
│ │ │ ├── TODO
│ │ │ └── README
│ │ ├── ada
│ │ │ └── zlib.gpr
│ │ ├── iostream
│ │ │ └── test.cpp
│ │ ├── iostream2
│ │ │ └── zstream_test.cpp
│ │ └── vstudio
│ │ │ ├── vc10
│ │ │ ├── miniunz.vcxproj.filters
│ │ │ ├── minizip.vcxproj.filters
│ │ │ ├── testzlibdll.vcxproj.filters
│ │ │ └── zlib.rc
│ │ │ ├── vc11
│ │ │ └── zlib.rc
│ │ │ ├── vc12
│ │ │ └── zlib.rc
│ │ │ ├── vc14
│ │ │ └── zlib.rc
│ │ │ └── vc9
│ │ │ └── zlib.rc
│ │ ├── zlib.3.pdf
│ │ ├── Makefile
│ │ ├── old
│ │ ├── README
│ │ └── os2
│ │ │ └── zlib.def
│ │ ├── nintendods
│ │ └── README
│ │ ├── .gitignore
│ │ ├── zlib.pc.in
│ │ ├── zlib.pc.cmakein
│ │ ├── inffast.h
│ │ ├── gzclose.c
│ │ └── watcom
│ │ ├── watcom_l.mak
│ │ └── watcom_f.mak
├── extras
│ ├── README.md
│ └── include
│ │ └── boost
│ │ └── beast
│ │ ├── test
│ │ ├── sig_wait.hpp
│ │ └── throughput.hpp
│ │ └── unit_test
│ │ ├── global_suites.hpp
│ │ └── amount.hpp
├── example
│ ├── CMakeLists.txt
│ ├── common
│ │ ├── main.cpp
│ │ ├── detect_ssl.cpp
│ │ ├── write_msg.cpp
│ │ ├── session_alloc.cpp
│ │ ├── ssl_stream.cpp
│ │ ├── server_certificate.cpp
│ │ ├── root_certificates.cpp
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ └── Jamfile
├── beast
│ ├── core.cpp
│ ├── http.cpp
│ ├── zlib.cpp
│ ├── config.cpp
│ ├── version.cpp
│ ├── core
│ │ ├── error.cpp
│ │ ├── file.cpp
│ │ ├── string.cpp
│ │ ├── prepare_buffers.cpp
│ │ ├── file_stdio.cpp
│ │ ├── file_posix.cpp
│ │ ├── file_win32.cpp
│ │ ├── clamp.cpp
│ │ ├── detail
│ │ │ └── varint.cpp
│ │ ├── Jamfile
│ │ ├── async_result.cpp
│ │ ├── read_size.cpp
│ │ └── CMakeLists.txt
│ ├── websocket.cpp
│ ├── websocket
│ │ ├── role.cpp
│ │ ├── option.cpp
│ │ ├── teardown.cpp
│ │ ├── Jamfile
│ │ ├── CMakeLists.txt
│ │ ├── mask.cpp
│ │ └── rfc6455.cpp
│ ├── http
│ │ ├── buffer_body.cpp
│ │ ├── basic_file_body.cpp
│ │ ├── basic_dynamic_body.cpp
│ │ ├── empty_body.cpp
│ │ ├── string_body.cpp
│ │ ├── vector_body.cpp
│ │ ├── type_traits.cpp
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ ├── zlib
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ ├── Jamfile
│ └── CMakeLists.txt
├── bench
│ ├── zlib
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ ├── CMakeLists.txt
│ ├── Jamfile
│ ├── wsload
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ ├── buffers
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ ├── utf8_checker
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ └── parser
│ │ ├── Jamfile
│ │ ├── CMakeLists.txt
│ │ ├── nodejs_parser.cpp
│ │ └── nodejs-parser
│ │ └── LICENSE-MIT
├── doc
│ ├── Jamfile
│ └── CMakeLists.txt
└── Jamfile
├── doc
├── .gitignore
├── docca
│ ├── example
│ │ ├── .gitignore
│ │ ├── makeqbk.sh
│ │ ├── index.xml
│ │ ├── reference.xsl
│ │ └── main.qbk
│ └── README.md
├── images
│ ├── message.png
│ └── readme2.png
├── xsl
│ ├── includes.xsl
│ ├── config.xsl
│ └── includes_foot.xsl
└── qbk
│ ├── 07_concepts
│ ├── BufferSequence.qbk
│ └── Streams.qbk
│ ├── index.xml
│ ├── 07_concepts.qbk
│ ├── 06_websocket
│ └── 2_connect.qbk
│ ├── 03_core.qbk
│ ├── 03_core
│ └── 4_files.qbk
│ └── 06_websocket.qbk
├── .gitignore
├── include
└── boost
│ ├── beast
│ ├── core
│ │ ├── detail
│ │ │ ├── base64.hpp
│ │ │ ├── config.hpp
│ │ │ ├── allocator.hpp
│ │ │ ├── in_place_init.hpp
│ │ │ └── clamp.hpp
│ │ └── file.hpp
│ ├── zlib.hpp
│ ├── websocket.hpp
│ ├── http
│ │ ├── dynamic_body.hpp
│ │ ├── file_body.hpp
│ │ └── impl
│ │ │ └── parser.ipp
│ ├── version.hpp
│ ├── websocket
│ │ ├── detail
│ │ │ └── type_traits.hpp
│ │ ├── error.hpp
│ │ └── impl
│ │ │ ├── rfc6455.ipp
│ │ │ └── ssl.ipp
│ ├── http.hpp
│ ├── config.hpp
│ └── core.hpp
│ └── beast.hpp
├── tools
├── local-travis.sh
├── valgrind.supp
├── make_field.sh
├── blacklist.supp
└── install-dependencies.sh
├── CODE_OF_CONDUCT.md
├── .gitattributes
├── example
├── http
│ ├── Jamfile
│ ├── CMakeLists.txt
│ ├── client
│ │ ├── coro
│ │ │ ├── Jamfile
│ │ │ └── CMakeLists.txt
│ │ ├── sync
│ │ │ ├── Jamfile
│ │ │ └── CMakeLists.txt
│ │ ├── async
│ │ │ ├── Jamfile
│ │ │ └── CMakeLists.txt
│ │ ├── crawl
│ │ │ ├── Jamfile
│ │ │ ├── urls_large_data.hpp
│ │ │ └── CMakeLists.txt
│ │ ├── async-ssl
│ │ │ ├── Jamfile
│ │ │ └── CMakeLists.txt
│ │ ├── coro-ssl
│ │ │ ├── Jamfile
│ │ │ └── CMakeLists.txt
│ │ ├── sync-ssl
│ │ │ ├── Jamfile
│ │ │ └── CMakeLists.txt
│ │ ├── CMakeLists.txt
│ │ └── Jamfile
│ └── server
│ │ ├── coro
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── fast
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── sync
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── async
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── small
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── stackless
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── flex
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── async-ssl
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── coro-ssl
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── sync-ssl
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── stackless-ssl
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
├── websocket
│ ├── Jamfile
│ ├── CMakeLists.txt
│ ├── client
│ │ ├── coro
│ │ │ ├── Jamfile
│ │ │ └── CMakeLists.txt
│ │ ├── sync
│ │ │ ├── Jamfile
│ │ │ └── CMakeLists.txt
│ │ ├── async
│ │ │ ├── Jamfile
│ │ │ └── CMakeLists.txt
│ │ ├── CMakeLists.txt
│ │ ├── Jamfile
│ │ ├── async-ssl
│ │ │ ├── Jamfile
│ │ │ └── CMakeLists.txt
│ │ ├── coro-ssl
│ │ │ ├── Jamfile
│ │ │ └── CMakeLists.txt
│ │ └── sync-ssl
│ │ │ ├── Jamfile
│ │ │ └── CMakeLists.txt
│ └── server
│ │ ├── coro
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── fast
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── sync
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── async
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── stackless
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── async-ssl
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── coro-ssl
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── sync-ssl
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── stackless-ssl
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ │ ├── CMakeLists.txt
│ │ └── Jamfile
├── advanced
│ ├── CMakeLists.txt
│ ├── Jamfile
│ ├── server
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
│ └── server-flex
│ │ ├── Jamfile
│ │ └── CMakeLists.txt
├── Jamfile
├── CMakeLists.txt
└── echo-op
│ ├── Jamfile
│ └── CMakeLists.txt
├── meta
└── libraries.json
├── index.html
├── .github
└── ISSUE_TEMPLATE.md
└── LICENSE_1_0.txt
/test/extern/zlib-1.2.11/contrib/blast/test.txt:
--------------------------------------------------------------------------------
1 | AIAIAIAIAIAIA
--------------------------------------------------------------------------------
/doc/.gitignore:
--------------------------------------------------------------------------------
1 | html
2 | temp
3 | out.txt
4 | qbk/reference.qbk
5 |
--------------------------------------------------------------------------------
/doc/docca/example/.gitignore:
--------------------------------------------------------------------------------
1 | bin
2 | html
3 | temp
4 | reference.qbk
5 | out.txt
6 |
--------------------------------------------------------------------------------
/doc/images/message.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceph/Beast/master/doc/images/message.png
--------------------------------------------------------------------------------
/doc/images/readme2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceph/Beast/master/doc/images/readme2.png
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | bin/
2 | bin64/
3 |
4 | # Because of CMake and VS2017
5 | Win32/
6 | x64/
7 |
8 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/infback9/README:
--------------------------------------------------------------------------------
1 | See infback9.h for what this is and how to use it.
2 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/zlib.3.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceph/Beast/master/test/extern/zlib-1.2.11/zlib.3.pdf
--------------------------------------------------------------------------------
/include/boost/beast/core/detail/base64.hpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceph/Beast/master/include/boost/beast/core/detail/base64.hpp
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/blast/README:
--------------------------------------------------------------------------------
1 | Read blast.h for purpose and usage.
2 |
3 | Mark Adler
4 | madler@alumni.caltech.edu
5 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/blast/test.pk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceph/Beast/master/test/extern/zlib-1.2.11/contrib/blast/test.pk
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/puff/zeros.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceph/Beast/master/test/extern/zlib-1.2.11/contrib/puff/zeros.raw
--------------------------------------------------------------------------------
/doc/docca/README.md:
--------------------------------------------------------------------------------
1 | # docca
2 | Boost.Book XSLT C++ documentation system
3 |
4 | [Example Documentation](http://vinniefalco.github.io/docca/)
5 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/masmx64/bld_ml64.bat:
--------------------------------------------------------------------------------
1 | ml64.exe /Flinffasx64 /c /Zi inffasx64.asm
2 | ml64.exe /Flgvmat64 /c /Zi gvmat64.asm
3 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | -@echo "Please use ./configure first. Thank you."
3 |
4 | distclean:
5 | make -f Makefile.in distclean
6 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib.chm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceph/Beast/master/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib.chm
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/masmx86/bld_ml32.bat:
--------------------------------------------------------------------------------
1 | ml /coff /Zi /c /Flmatch686.lst match686.asm
2 | ml /coff /Zi /c /Flinffas32.lst inffas32.asm
3 |
--------------------------------------------------------------------------------
/tools/local-travis.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | export VARIANT=ubasan
4 | export TOOLSET=clang
5 | export TRAVIS=0
6 | export BOOST_ROOT="`pwd`"
7 |
8 | "$1"
9 |
--------------------------------------------------------------------------------
/test/extras/README.md:
--------------------------------------------------------------------------------
1 | # Extras
2 |
3 | These are not part of the official public Beast interface but they are used by the tests and some third party programs.
4 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib/CodecBase.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceph/Beast/master/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib/CodecBase.cs
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib/Deflater.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceph/Beast/master/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib/Deflater.cs
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib/DotZLib.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceph/Beast/master/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib/DotZLib.cs
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib/Inflater.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceph/Beast/master/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib/Inflater.cs
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib/GZipStream.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceph/Beast/master/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib/GZipStream.cs
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib/ChecksumImpl.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceph/Beast/master/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib/ChecksumImpl.cs
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib/CircularBuffer.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceph/Beast/master/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib/CircularBuffer.cs
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/old/README:
--------------------------------------------------------------------------------
1 | This directory contains files that have not been updated for zlib 1.2.x
2 |
3 | (Volunteers are encouraged to help clean this up. Thanks.)
4 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/minizip/MiniZip64_Changes.txt:
--------------------------------------------------------------------------------
1 |
2 | MiniZip 1.1 was derrived from MiniZip at version 1.01f
3 |
4 | Change in 1.0 (Okt 2009)
5 | - **TODO - Add history**
6 |
7 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Code of Conduct
2 |
3 | * Be respectful of others
4 |
5 | * Please use professional conduct
6 |
7 | * Treat others the way you want to be treated
8 |
9 | Thank you!
10 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/blast/Makefile:
--------------------------------------------------------------------------------
1 | blast: blast.c blast.h
2 | cc -DTEST -o blast blast.c
3 |
4 | test: blast
5 | blast < test.pk | cmp - test.txt
6 |
7 | clean:
8 | rm -f blast blast.o
9 |
--------------------------------------------------------------------------------
/doc/xsl/includes.xsl:
--------------------------------------------------------------------------------
1 |
2 | Defined in header [include_file
3 |
4 | ]
5 |
6 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/nintendods/README:
--------------------------------------------------------------------------------
1 | This Makefile requires devkitARM (http://www.devkitpro.org/category/devkitarm/) and works inside "contrib/nds". It is based on a devkitARM template.
2 |
3 | Eduardo Costa
4 | January 3, 2009
5 |
6 |
--------------------------------------------------------------------------------
/doc/xsl/config.xsl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/delphi/ZLibConst.pas:
--------------------------------------------------------------------------------
1 | unit ZLibConst;
2 |
3 | interface
4 |
5 | resourcestring
6 | sTargetBufferTooSmall = 'ZLib error: target buffer may be too small';
7 | sInvalidStreamOp = 'Invalid stream operation';
8 |
9 | implementation
10 |
11 | end.
12 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/testzlib/testzlib.txt:
--------------------------------------------------------------------------------
1 | To build testzLib with Visual Studio 2005:
2 |
3 | copy to a directory file from :
4 | - root of zLib tree
5 | - contrib/testzlib
6 | - contrib/masmx86
7 | - contrib/masmx64
8 | - contrib/vstudio/vc7
9 |
10 | and open testzlib8.sln
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Set default behaviour, in case users don't have core.autocrlf set.
2 | * text=auto
3 |
4 | # Github
5 | .md text eol=lf
6 |
7 | # Visual Studio
8 | *.sln text eol=crlf
9 | *.vcproj text eol=crlf
10 | *.vcxproj text eol=crlf
11 | *.props text eol=crlf
12 | *.filters text eol=crlf
13 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/.gitignore:
--------------------------------------------------------------------------------
1 | *.diff
2 | *.patch
3 | *.orig
4 | *.rej
5 |
6 | *~
7 | *.a
8 | *.lo
9 | *.o
10 | *.dylib
11 |
12 | *.gcda
13 | *.gcno
14 | *.gcov
15 |
16 | /example
17 | /example64
18 | /examplesh
19 | /libz.so*
20 | /minigzip
21 | /minigzip64
22 | /minigzipsh
23 | /zlib.pc
24 | /configure.log
25 |
26 | .DS_Store
27 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/untgz/Makefile:
--------------------------------------------------------------------------------
1 | CC=cc
2 | CFLAGS=-g
3 |
4 | untgz: untgz.o ../../libz.a
5 | $(CC) $(CFLAGS) -o untgz untgz.o -L../.. -lz
6 |
7 | untgz.o: untgz.c ../../zlib.h
8 | $(CC) $(CFLAGS) -c -I../.. untgz.c
9 |
10 | ../../libz.a:
11 | cd ../..; ./configure; make
12 |
13 | clean:
14 | rm -f untgz untgz.o *~
15 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/zlib.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | sharedlibdir=@sharedlibdir@
5 | includedir=@includedir@
6 |
7 | Name: zlib
8 | Description: zlib compression library
9 | Version: @VERSION@
10 |
11 | Requires:
12 | Libs: -L${libdir} -L${sharedlibdir} -lz
13 | Cflags: -I${includedir}
14 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/minizip/minizip.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@/minizip
5 |
6 | Name: minizip
7 | Description: Minizip zip file manipulation library
8 | Requires:
9 | Version: @PACKAGE_VERSION@
10 | Libs: -L${libdir} -lminizip
11 | Libs.private: -lz
12 | Cflags: -I${includedir}
13 |
--------------------------------------------------------------------------------
/test/example/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | add_subdirectory (common)
11 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/zlib.pc.cmakein:
--------------------------------------------------------------------------------
1 | prefix=@CMAKE_INSTALL_PREFIX@
2 | exec_prefix=@CMAKE_INSTALL_PREFIX@
3 | libdir=@INSTALL_LIB_DIR@
4 | sharedlibdir=@INSTALL_LIB_DIR@
5 | includedir=@INSTALL_INC_DIR@
6 |
7 | Name: zlib
8 | Description: zlib compression library
9 | Version: @VERSION@
10 |
11 | Requires:
12 | Libs: -L${libdir} -L${sharedlibdir} -lz
13 | Cflags: -I${includedir}
14 |
--------------------------------------------------------------------------------
/test/example/common/main.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | int main()
11 | {
12 | }
13 |
--------------------------------------------------------------------------------
/example/http/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | build-project client ;
11 | build-project server ;
12 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/untgz/Makefile.msc:
--------------------------------------------------------------------------------
1 | CC=cl
2 | CFLAGS=-MD
3 |
4 | untgz.exe: untgz.obj ..\..\zlib.lib
5 | $(CC) $(CFLAGS) untgz.obj ..\..\zlib.lib
6 |
7 | untgz.obj: untgz.c ..\..\zlib.h
8 | $(CC) $(CFLAGS) -c -I..\.. untgz.c
9 |
10 | ..\..\zlib.lib:
11 | cd ..\..
12 | $(MAKE) -f win32\makefile.msc
13 | cd contrib\untgz
14 |
15 | clean:
16 | -del untgz.obj
17 | -del untgz.exe
18 |
--------------------------------------------------------------------------------
/example/websocket/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | build-project client ;
11 | build-project server ;
12 |
--------------------------------------------------------------------------------
/example/http/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | add_subdirectory (client)
11 | add_subdirectory (server)
12 |
--------------------------------------------------------------------------------
/meta/libraries.json:
--------------------------------------------------------------------------------
1 | {
2 | "key": "beast",
3 | "name": "Beast",
4 | "authors": [
5 | "Vinnie Falco"
6 | ],
7 | "description": "Portable HTTP, WebSocket, and network operations using only C++11 and Boost.Asio",
8 | "category": [
9 | "Concurrent",
10 | "IO"
11 | ],
12 | "maintainers": [
13 | "Vinnie Falco "
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------
/example/websocket/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | add_subdirectory (client)
11 | add_subdirectory (server)
12 |
--------------------------------------------------------------------------------
/example/advanced/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | add_subdirectory (server)
11 | add_subdirectory (server-flex)
12 |
--------------------------------------------------------------------------------
/test/beast/core.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
--------------------------------------------------------------------------------
/test/beast/http.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
--------------------------------------------------------------------------------
/test/beast/zlib.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
--------------------------------------------------------------------------------
/test/beast/config.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
--------------------------------------------------------------------------------
/test/beast/version.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
--------------------------------------------------------------------------------
/test/beast/core/error.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
--------------------------------------------------------------------------------
/test/beast/core/file.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
--------------------------------------------------------------------------------
/test/beast/websocket.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
--------------------------------------------------------------------------------
/test/beast/core/string.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
--------------------------------------------------------------------------------
/test/beast/websocket/role.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
--------------------------------------------------------------------------------
/doc/docca/example/makeqbk.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/bash
2 |
3 | # Copyright (c) 2013-2016 Vinnie Falco (vinnie dot falco at gmail dot com)
4 | #
5 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
6 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 |
8 | mkdir -p temp
9 | doxygen source.dox
10 | cd temp
11 | xsltproc combine.xslt index.xml > all.xml
12 | xsltproc ../reference.xsl all.xml > ../reference.qbk
13 |
14 |
--------------------------------------------------------------------------------
/test/beast/http/buffer_body.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
--------------------------------------------------------------------------------
/test/beast/websocket/option.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
--------------------------------------------------------------------------------
/test/beast/core/prepare_buffers.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
13 |
--------------------------------------------------------------------------------
/test/beast/http/basic_file_body.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
--------------------------------------------------------------------------------
/test/beast/websocket/teardown.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
--------------------------------------------------------------------------------
/test/example/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | alias run-tests :
11 | common//run-tests
12 | ;
13 |
14 | alias fat-tests ;
15 |
16 | explicit fat-tests ;
17 |
--------------------------------------------------------------------------------
/test/example/common/detect_ssl.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include "example/common/detect_ssl.hpp"
12 |
13 |
--------------------------------------------------------------------------------
/test/example/common/write_msg.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include "example/common/write_msg.hpp"
12 |
13 |
--------------------------------------------------------------------------------
/test/example/common/session_alloc.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include "example/common/session_alloc.hpp"
12 |
13 |
--------------------------------------------------------------------------------
/example/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | build-project advanced ;
11 | build-project http ;
12 | build-project websocket ;
13 |
14 | # legacy
15 | build-project echo-op ;
16 |
--------------------------------------------------------------------------------
/test/beast/http/basic_dynamic_body.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
--------------------------------------------------------------------------------
/example/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | add_subdirectory (advanced)
11 | add_subdirectory (http)
12 | add_subdirectory (websocket)
13 |
14 | add_subdirectory (echo-op)
15 |
--------------------------------------------------------------------------------
/example/echo-op/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe echo-op :
11 | echo_op.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/test/bench/zlib/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe bench-zlib :
11 | $(ZLIB_SOURCES)
12 | $(TEST_MAIN)
13 | deflate_stream.cpp
14 | inflate_stream.cpp
15 | ;
16 |
--------------------------------------------------------------------------------
/example/advanced/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | build-project server ;
11 |
12 | # VFALCO How do I make this work on Windows and if OpenSSL is not available?
13 | #build-project server-flex ;
14 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/inffast.h:
--------------------------------------------------------------------------------
1 | /* inffast.h -- header to use inffast.c
2 | * Copyright (C) 1995-2003, 2010 Mark Adler
3 | * For conditions of distribution and use, see copyright notice in zlib.h
4 | */
5 |
6 | /* WARNING: this file should *not* be used by applications. It is
7 | part of the implementation of the compression library and is
8 | subject to change. Applications should only use zlib.h.
9 | */
10 |
11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start));
12 |
--------------------------------------------------------------------------------
/example/advanced/server/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe advanced-server :
11 | advanced_server.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/example/http/client/coro/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe http-client-coro :
11 | http_client_coro.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/example/http/client/sync/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe http-client-sync :
11 | http_client_sync.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/example/http/server/coro/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe http-server-coro :
11 | http_server_coro.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/example/http/server/fast/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe http-server-fast :
11 | http_server_fast.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/example/http/server/sync/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe http-server-sync :
11 | http_server_sync.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/test/bench/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | add_subdirectory (buffers)
11 | add_subdirectory (parser)
12 | add_subdirectory (utf8_checker)
13 | add_subdirectory (wsload)
14 | add_subdirectory (zlib)
15 |
--------------------------------------------------------------------------------
/doc/docca/example/index.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
15 |
--------------------------------------------------------------------------------
/example/http/client/async/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe http-client-async :
11 | http_client_async.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/example/http/server/async/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe http-server-async :
11 | http_server_async.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/example/http/server/small/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe http-server-small :
11 | http_server_small.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/test/example/common/ssl_stream.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | #if BOOST_BEAST_USE_OPENSSL
11 |
12 | // Test that header file is self-contained.
13 | #include "example/common/ssl_stream.hpp"
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/example/http/server/stackless/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe http-server-stackless :
11 | http_server_stackless.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/example/websocket/client/coro/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe websocket-client-coro :
11 | websocket_client_coro.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/example/websocket/client/sync/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe websocket-client-sync :
11 | websocket_client_sync.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/example/websocket/server/coro/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe websocket-server-coro :
11 | websocket_server_coro.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/example/websocket/server/fast/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe websocket-server-fast :
11 | websocket_server_fast.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/example/websocket/server/sync/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe websocket-server-sync :
11 | websocket_server_sync.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/example/http/client/crawl/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe http-crawl :
11 | http_crawl.cpp
12 | urls_large_data.cpp
13 | :
14 | coverage:no
15 | ubasan:no
16 | ;
17 |
--------------------------------------------------------------------------------
/example/websocket/client/async/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe websocket-client-async :
11 | websocket_client_async.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/example/websocket/server/async/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe websocket-server-async :
11 | websocket_server_async.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/doc/docca/example/reference.xsl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/test/example/common/server_certificate.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | #if BOOST_BEAST_USE_OPENSSL
11 |
12 | // Test that header file is self-contained.
13 | #include "example/common/server_certificate.hpp"
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/example/websocket/server/stackless/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe websocket-server-stackless :
11 | websocket_server_stackless.cpp
12 | :
13 | coverage:no
14 | ubasan:no
15 | ;
16 |
--------------------------------------------------------------------------------
/test/bench/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | alias run-tests :
11 | buffers//run-tests
12 | parser//run-tests
13 | wsload//run-tests
14 | utf8_checker//run-tests
15 | #zlib//run-tests # Not built
16 | ;
17 |
--------------------------------------------------------------------------------
/test/example/common/root_certificates.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | #if BOOST_BEAST_USE_OPENSSL
11 |
12 | // Test that header file is self-contained.
13 | #include "example/common/root_certificates.hpp"
14 |
15 | #endif
16 |
17 |
--------------------------------------------------------------------------------
/test/bench/wsload/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe wsload :
11 | $(TEST_MAIN)
12 | wsload.cpp
13 | ;
14 |
15 | explicit wsload ;
16 |
17 | alias run-tests :
18 | [ compile wsload.cpp : : wsload-compile ]
19 | ;
20 |
--------------------------------------------------------------------------------
/example/echo-op/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/echo-op "/")
12 |
13 | add_executable (echo-op
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | echo_op.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/test/bench/buffers/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe bench-buffers :
11 | $(TEST_MAIN)
12 | bench_buffers.cpp
13 | ;
14 |
15 | explicit bench-buffers ;
16 |
17 | alias run-tests :
18 | [ compile bench_buffers.cpp ]
19 | ;
20 |
--------------------------------------------------------------------------------
/test/bench/utf8_checker/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe bench-utf8-checker :
11 | $(TEST_MAIN)
12 | bench_utf8_checker.cpp
13 | ;
14 |
15 | explicit bench-utf8-checker ;
16 |
17 | alias run-tests :
18 | [ compile bench_utf8_checker.cpp ]
19 | ;
20 |
--------------------------------------------------------------------------------
/example/advanced/server/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/advanced/server "/")
12 |
13 | add_executable (advanced-server
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | advanced_server.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/example/http/client/coro/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/http/client/coro "/")
12 |
13 | add_executable (http-client-coro
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | http_client_coro.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/example/http/client/sync/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/http/client/sync "/")
12 |
13 | add_executable (http-client-sync
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | http_client_sync.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/example/http/server/coro/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/http/server/coro "/")
12 |
13 | add_executable (http-server-coro
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | http_server_coro.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/example/http/server/sync/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/http/server/sync "/")
12 |
13 | add_executable (http-server-sync
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | http_server_sync.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/doc/qbk/07_concepts/BufferSequence.qbk:
--------------------------------------------------------------------------------
1 | [/
2 | Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 |
4 | Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 |
7 | Official repository: https://github.com/boostorg/beast
8 | ]
9 |
10 | [section:BufferSequence BufferSequence]
11 |
12 | A [*BufferSequence] is a type meeting either of the following requirements:
13 |
14 | * __ConstBufferSequence__
15 | * __MutableBufferSequence__
16 |
17 | [endsect]
18 |
--------------------------------------------------------------------------------
/example/http/client/async/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/http/client/async "/")
12 |
13 | add_executable (http-client-async
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | http_client_async.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/example/http/server/async/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/http/server/async "/")
12 |
13 | add_executable (http-server-async
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | http_server_async.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/example/http/server/small/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/http/server/small "/")
12 |
13 | add_executable (http-server-small
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | http_server_small.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/doc/qbk/index.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 |
16 |
--------------------------------------------------------------------------------
/example/http/server/stackless/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/http/server/stackless "/")
12 |
13 | add_executable (http-server-stackless
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | http_server_stackless.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/example/websocket/client/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | add_subdirectory (async)
11 | add_subdirectory (coro)
12 | add_subdirectory (sync)
13 |
14 | if (OPENSSL_FOUND)
15 | add_subdirectory (async-ssl)
16 | add_subdirectory (coro-ssl)
17 | add_subdirectory (sync-ssl)
18 | endif()
19 |
--------------------------------------------------------------------------------
/example/websocket/client/coro/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/websocket/client/coro "/")
12 |
13 | add_executable (websocket-client-coro
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | websocket_client_coro.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/example/websocket/client/sync/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/websocket/client/sync "/")
12 |
13 | add_executable (websocket-client-sync
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | websocket_client_sync.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/example/websocket/server/coro/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/websocket/server/coro "/")
12 |
13 | add_executable (websocket-server-coro
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | websocket_server_coro.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/example/websocket/server/fast/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/websocket/server/fast "/")
12 |
13 | add_executable (websocket-server-fast
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | websocket_server_fast.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/example/websocket/server/sync/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/websocket/server/sync "/")
12 |
13 | add_executable (websocket-server-sync
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | websocket_server_sync.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/iostream3/TODO:
--------------------------------------------------------------------------------
1 | Possible upgrades to gzfilebuf:
2 |
3 | - The ability to do putback (e.g. putbackfail)
4 |
5 | - The ability to seek (zlib supports this, but could be slow/tricky)
6 |
7 | - Simultaneous read/write access (does it make sense?)
8 |
9 | - Support for ios_base::ate open mode
10 |
11 | - Locale support?
12 |
13 | - Check public interface to see which calls give problems
14 | (due to dependence on library internals)
15 |
16 | - Override operator<<(ostream&, gzfilebuf*) to allow direct copying
17 | of stream buffer to stream ( i.e. os << is.rdbuf(); )
18 |
--------------------------------------------------------------------------------
/example/websocket/client/async/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/websocket/client/async "/")
12 |
13 | add_executable (websocket-client-async
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | websocket_client_async.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/example/websocket/server/async/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/websocket/server/async "/")
12 |
13 | add_executable (websocket-server-async
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | websocket_server_async.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/test/bench/parser/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | exe bench-parser :
11 | $(TEST_MAIN)
12 | nodejs_parser.cpp
13 | bench_parser.cpp
14 | ;
15 |
16 | explicit bench-parser ;
17 |
18 | alias run-tests :
19 | [ compile nodejs_parser.cpp ]
20 | [ compile bench_parser.cpp ]
21 | ;
22 |
--------------------------------------------------------------------------------
/example/http/server/flex/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe http-server-async-ssl :
17 | http_server_async_ssl.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/example/websocket/client/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | build-project async ;
11 | build-project coro ;
12 | build-project sync ;
13 |
14 | # VFALCO How do I make this work on Windows and if OpenSSL is not available?
15 | #build-project async-ssl ;
16 | #build-project coro-ssl ;
17 | #build-project sync-ssl ;
18 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/minizip/Makefile:
--------------------------------------------------------------------------------
1 | CC=cc
2 | CFLAGS=-O -I../..
3 |
4 | UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a
5 | ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a
6 |
7 | .c.o:
8 | $(CC) -c $(CFLAGS) $*.c
9 |
10 | all: miniunz minizip
11 |
12 | miniunz: $(UNZ_OBJS)
13 | $(CC) $(CFLAGS) -o $@ $(UNZ_OBJS)
14 |
15 | minizip: $(ZIP_OBJS)
16 | $(CC) $(CFLAGS) -o $@ $(ZIP_OBJS)
17 |
18 | test: miniunz minizip
19 | ./minizip test readme.txt
20 | ./miniunz -l test.zip
21 | mv readme.txt readme.old
22 | ./miniunz test.zip
23 |
24 | clean:
25 | /bin/rm -f *.o *~ minizip miniunz
26 |
--------------------------------------------------------------------------------
/tools/valgrind.supp:
--------------------------------------------------------------------------------
1 | {
2 | zlib_fill_window_no_init
3 | Memcheck:Cond
4 | fun:fill_window
5 | }
6 | {
7 | beast_fill_window_no_init
8 | Memcheck:Cond
9 | fun:_ZN5beast4zlib6detail14deflate_stream11fill_windowIvEEvRNS0_8z_paramsE
10 | }
11 | {
12 | Ignore OpenSSL malloc
13 | Memcheck:Leak
14 | fun:malloc
15 | fun:CRYPTO_malloc
16 | obj:*libcrypto*
17 | }
18 | {
19 | Ignore OpenSSL realloc
20 | Memcheck:Leak
21 | fun:realloc
22 | fun:CRYPTO_realloc
23 | obj:*libcrypto*
24 | }
25 | {
26 | OpenSSL Non-Purify
27 | Memcheck:Cond
28 | obj:*libcrypto*
29 | }
30 |
--------------------------------------------------------------------------------
/example/advanced/server-flex/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe advanced-server-flex :
17 | advanced_server_flex.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/example/http/client/async-ssl/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe http-client-async-ssl :
17 | http_client_async_ssl.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/example/http/client/coro-ssl/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe http-client-coro-ssl :
17 | http_client_coro_ssl.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/example/http/client/sync-ssl/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe http-client-sync-ssl :
17 | http_client_sync_ssl.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/example/http/server/async-ssl/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe http-server-async-ssl :
17 | http_server_async_ssl.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/example/http/server/coro-ssl/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe http-server-coro-ssl :
17 | http_server_coro_ssl.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/example/http/server/sync-ssl/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe http-server-sync-ssl :
17 | http_server_sync_ssl.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/example/http/server/stackless-ssl/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe http-server-async-ssl :
17 | http_server_async_ssl.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/example/websocket/server/stackless/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/websocket/server/stackless "/")
12 |
13 | add_executable (websocket-server-stackless
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | websocket_server_stackless.cpp
17 | )
18 |
--------------------------------------------------------------------------------
/example/http/client/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | add_subdirectory (async)
11 | add_subdirectory (coro)
12 | add_subdirectory (crawl)
13 | add_subdirectory (sync)
14 |
15 | if (OPENSSL_FOUND)
16 | add_subdirectory (async-ssl)
17 | add_subdirectory (coro-ssl)
18 | add_subdirectory (sync-ssl)
19 | endif()
20 |
--------------------------------------------------------------------------------
/example/http/client/crawl/urls_large_data.hpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | #ifndef BOOST_BEAST_EXAMPLE_HTTP_CLIENT_CRAWL_URLS_LARGE_DATA_HPP
11 | #define BOOST_BEAST_EXAMPLE_HTTP_CLIENT_CRAWL_URLS_LARGE_DATA_HPP
12 |
13 | #include
14 |
15 | std::vector const&
16 | urls_large_data();
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/example/http/client/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | build-project async ;
11 | build-project coro ;
12 | build-project crawl ;
13 | build-project sync ;
14 |
15 | # VFALCO How do I make this work on Windows and if OpenSSL is not available?
16 | #build-project async-ssl ;
17 | #build-project coro-ssl ;
18 | #build-project sync-ssl ;
19 |
--------------------------------------------------------------------------------
/example/websocket/client/async-ssl/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe websocket-client-async-ssl :
17 | websocket_client_async_ssl.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/example/websocket/client/coro-ssl/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe websocket-client-coro-ssl :
17 | websocket_client_coro_ssl.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/example/websocket/client/sync-ssl/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe websocket-client-sync-ssl :
17 | websocket_client_sync_ssl.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/example/websocket/server/async-ssl/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe websocket-server-async-ssl :
17 | websocket_server_async_ssl.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/example/websocket/server/coro-ssl/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe websocket-server-coro-ssl :
17 | websocket_server_coro_ssl.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/example/websocket/server/sync-ssl/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe websocket-server-sync-ssl :
17 | websocket_server_sync_ssl.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/example/http/client/crawl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/http/client/crawl "/")
12 |
13 | add_executable (http-crawl
14 | ${BOOST_BEAST_INCLUDES}
15 | Jamfile
16 | urls_large_data.hpp
17 | urls_large_data.cpp
18 | http_crawl.cpp
19 | )
20 |
21 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/ada/zlib.gpr:
--------------------------------------------------------------------------------
1 | project Zlib is
2 |
3 | for Languages use ("Ada");
4 | for Source_Dirs use (".");
5 | for Object_Dir use ".";
6 | for Main use ("test.adb", "mtest.adb", "read.adb", "buffer_demo");
7 |
8 | package Compiler is
9 | for Default_Switches ("ada") use ("-gnatwcfilopru", "-gnatVcdfimorst", "-gnatyabcefhiklmnoprst");
10 | end Compiler;
11 |
12 | package Linker is
13 | for Default_Switches ("ada") use ("-lz");
14 | end Linker;
15 |
16 | package Builder is
17 | for Default_Switches ("ada") use ("-s", "-gnatQ");
18 | end Builder;
19 |
20 | end Zlib;
21 |
--------------------------------------------------------------------------------
/example/websocket/server/stackless-ssl/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | project
11 | : requirements
12 | ssl
13 | crypto
14 | ;
15 |
16 | exe websocket-server-stackless-ssl :
17 | websocket_server_stackless_ssl.cpp
18 | :
19 | coverage:no
20 | ubasan:no
21 | ;
22 |
--------------------------------------------------------------------------------
/test/bench/buffers/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(test/extras/include/boost/beast extras)
11 | GroupSources(include/boost/beast beast)
12 | GroupSources(test/bench/buffers "/")
13 |
14 | add_executable (bench-buffers
15 | ${BOOST_BEAST_INCLUDES}
16 | ${EXTRAS_INCLUDES}
17 | ${TEST_MAIN}
18 | Jamfile
19 | bench_buffers.cpp
20 | )
21 |
--------------------------------------------------------------------------------
/example/http/server/fast/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/http/server/fast "/")
13 |
14 | add_executable (http-server-fast
15 | ${BOOST_BEAST_INCLUDES}
16 | ${COMMON_INCLUDES}
17 | Jamfile
18 | fields_alloc.hpp
19 | http_server_fast.cpp
20 | )
21 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/iostream/test.cpp:
--------------------------------------------------------------------------------
1 |
2 | #include "zfstream.h"
3 |
4 | int main() {
5 |
6 | // Construct a stream object with this filebuffer. Anything sent
7 | // to this stream will go to standard out.
8 | gzofstream os( 1, ios::out );
9 |
10 | // This text is getting compressed and sent to stdout.
11 | // To prove this, run 'test | zcat'.
12 | os << "Hello, Mommy" << endl;
13 |
14 | os << setcompressionlevel( Z_NO_COMPRESSION );
15 | os << "hello, hello, hi, ho!" << endl;
16 |
17 | setcompressionlevel( os, Z_DEFAULT_COMPRESSION )
18 | << "I'm compressing again" << endl;
19 |
20 | os.close();
21 |
22 | return 0;
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/include/boost/beast/zlib.hpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | #ifndef BOOST_BEAST_ZLIB_HPP
11 | #define BOOST_BEAST_ZLIB_HPP
12 |
13 | #include
14 |
15 | #include
16 | #include
17 | #include
18 | #include
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/include/boost/beast.hpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | #ifndef BOOST_BEAST_HPP
11 | #define BOOST_BEAST_HPP
12 |
13 | #include // must come first
14 |
15 | #include
16 | #include
17 | #include
18 | #include
19 | #include
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/test/bench/utf8_checker/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(test/extras/include/boost/beast extras)
11 | GroupSources(include/boost/beast beast)
12 | GroupSources(test/bench/utf8_checker "/")
13 |
14 | add_executable (bench-utf8-checker
15 | ${BOOST_BEAST_INCLUDES}
16 | ${EXTRAS_INCLUDES}
17 | ${TEST_MAIN}
18 | Jamfile
19 | bench_utf8_checker.cpp
20 | )
21 |
--------------------------------------------------------------------------------
/example/websocket/server/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | add_subdirectory (async)
11 | add_subdirectory (coro)
12 | add_subdirectory (fast)
13 | add_subdirectory (stackless)
14 | add_subdirectory (sync)
15 |
16 | if (OPENSSL_FOUND)
17 | add_subdirectory (async-ssl)
18 | add_subdirectory (coro-ssl)
19 | add_subdirectory (stackless-ssl)
20 | add_subdirectory (sync-ssl)
21 | endif()
22 |
--------------------------------------------------------------------------------
/example/websocket/server/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | build-project async ;
11 | build-project coro ;
12 | build-project fast ;
13 | build-project stackless ;
14 | build-project sync ;
15 |
16 | # VFALCO How do I make this work on Windows and if OpenSSL is not available?
17 | #build-project async-ssl ;
18 | #build-project coro-ssl ;
19 | #build-project stackless-ssl ;
20 | #build-project sync-ssl ;
21 |
--------------------------------------------------------------------------------
/test/bench/wsload/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(test/extras/include/boost/beast extras)
13 | GroupSources(test/bench/wsload "/")
14 |
15 | add_executable (bench-wsload
16 | ${BOOST_BEAST_INCLUDES}
17 | ${COMMON_INCLUDES}
18 | ${EXTRAS_INCLUDES}
19 | Jamfile
20 | wsload.cpp
21 | )
22 |
--------------------------------------------------------------------------------
/tools/make_field.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | export LC_COLLATE=C
4 |
5 | echo "// string constants"
6 | echo ' "",'
7 | cat $1 | sort -f | uniq | sed 's/^/ \"/; s/$/\",/'
8 | echo
9 |
10 | echo "enum class field : unsigned short"
11 | echo "{"
12 | echo " unknown = 0,"
13 | echo
14 | #cat $1 | uniq | sort -f | sed 's/./\L&/g; s/^/\t/; s/$/,/'
15 | cat $1 | sort -f | uniq | sed 's/\(.*\)/ \L\1,/; s/-/_/g'
16 | echo "};"
17 | echo
18 |
19 | echo "// pairs"
20 | #cat $1 | uniq | sort -f | sed 's/\(.*\)/\tmatch\(field::\L\1, \"\E\1\"\);/; s/-/_/'
21 | cat $1 | sort -f | uniq | perl -nE 'chomp; $a=lc($_); $a=~s/-/_/g; say " match(field::$a, \"$_\");";' | tr -d "\015"
22 |
23 |
--------------------------------------------------------------------------------
/test/doc/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | alias run-tests :
11 | [ compile core_snippets.cpp ]
12 | [ compile http_snippets.cpp ]
13 | [ compile websocket_snippets.cpp ]
14 | [ run core_examples.cpp $(TEST_MAIN) ]
15 | [ run http_examples.cpp $(TEST_MAIN) ]
16 | ;
17 |
18 | exe fat-tests :
19 | $(TEST_MAIN)
20 | core_examples.cpp
21 | http_examples.cpp
22 | ;
23 |
24 | explicit fat-tests ;
25 |
--------------------------------------------------------------------------------
/test/beast/zlib/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | local SOURCES =
11 | error.cpp
12 | deflate_stream.cpp
13 | inflate_stream.cpp
14 | ;
15 |
16 | local RUN_TESTS ;
17 |
18 | for local f in $(SOURCES)
19 | {
20 | RUN_TESTS += [ run $(f) $(TEST_MAIN) $(ZLIB_SOURCES) ] ;
21 | }
22 |
23 | alias run-tests : $(RUN_TESTS) ;
24 |
25 | exe fat-tests : $(TEST_MAIN) $(ZLIB_SOURCES) $(SOURCES) ;
26 |
27 | explicit fat-tests ;
28 |
--------------------------------------------------------------------------------
/example/http/server/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | build-project async ;
11 | build-project coro ;
12 | build-project fast ;
13 | build-project small ;
14 | build-project stackless ;
15 | build-project sync ;
16 |
17 | # VFALCO How do I make this work on Windows and if OpenSSL is not available?
18 | #build-project async-ssl ;
19 | #build-project coro-ssl ;
20 | #build-project flex ;
21 | #build-project stackless-ssl ;
22 | #build-project sync-ssl ;
23 |
--------------------------------------------------------------------------------
/include/boost/beast/websocket.hpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | #ifndef BOOST_BEAST_WEBSOCKET_HPP
11 | #define BOOST_BEAST_WEBSOCKET_HPP
12 |
13 | #include
14 |
15 | #include
16 | #include
17 | #include
18 | #include
19 | #include
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/example/http/server/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | add_subdirectory (async)
11 | add_subdirectory (coro)
12 | add_subdirectory (fast)
13 | add_subdirectory (small)
14 | add_subdirectory (stackless)
15 | add_subdirectory (sync)
16 |
17 | if (OPENSSL_FOUND)
18 | add_subdirectory (async-ssl)
19 | add_subdirectory (coro-ssl)
20 | add_subdirectory (flex)
21 | add_subdirectory (stackless-ssl)
22 | add_subdirectory (sync-ssl)
23 | endif()
24 |
--------------------------------------------------------------------------------
/test/beast/http/empty_body.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
13 | namespace boost {
14 | namespace beast {
15 | namespace http {
16 |
17 | BOOST_STATIC_ASSERT(is_body::value);
18 | BOOST_STATIC_ASSERT(is_body_reader::value);
19 | BOOST_STATIC_ASSERT(is_body_writer::value);
20 |
21 | } // http
22 | } // beast
23 | } // boost
24 |
--------------------------------------------------------------------------------
/test/beast/http/string_body.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
13 | namespace boost {
14 | namespace beast {
15 | namespace http {
16 |
17 | BOOST_STATIC_ASSERT(is_body::value);
18 | BOOST_STATIC_ASSERT(is_body_reader::value);
19 | BOOST_STATIC_ASSERT(is_body_writer::value);
20 |
21 | } // http
22 | } // beast
23 | } // boost
24 |
--------------------------------------------------------------------------------
/test/example/common/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | local SOURCES =
11 | detect_ssl.cpp
12 | root_certificates.cpp
13 | server_certificate.cpp
14 | session_alloc.cpp
15 | ssl_stream.cpp
16 | write_msg.cpp
17 | ;
18 |
19 | local RUN_TESTS ;
20 |
21 | for local f in $(SOURCES)
22 | {
23 | RUN_TESTS += [ compile $(f) ] ;
24 | }
25 |
26 | alias run-tests : $(RUN_TESTS) ;
27 |
28 | alias build-fat : run-tests ;
29 |
30 | explicit build-fat ;
31 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Boost.Beast
4 |
5 |
6 |
7 | Automatic redirection failed, please go to
8 | ./doc/html/beast.html
9 |
10 |
11 | Boost.Beast
12 |
13 | Copyright (C) 2016-2017 Vinnie Falco
14 |
15 | Distributed under the Boost Software License, Version 1.0.
16 | (See accompanying file LICENSE_1_0.txt or copy at
17 | http://www.boost.org/LICENSE_1_0.txt)
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/include/boost/beast/core/detail/config.hpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | #ifndef BOOST_BEAST_CORE_DETAIL_CONFIG_HPP
11 | #define BOOST_BEAST_CORE_DETAIL_CONFIG_HPP
12 |
13 | #include
14 | #include
15 |
16 | #if BOOST_VERSION >= 106500 || ! defined(BOOST_GCC) || BOOST_GCC < 70000
17 | # define BOOST_BEAST_FALLTHROUGH BOOST_FALLTHROUGH
18 | #else
19 | # define BOOST_BEAST_FALLTHROUGH __attribute__((fallthrough))
20 | #endif
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/test/beast/http/vector_body.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
13 | namespace boost {
14 | namespace beast {
15 | namespace http {
16 |
17 | BOOST_STATIC_ASSERT(is_body>::value);
18 | BOOST_STATIC_ASSERT(is_body_reader>::value);
19 | BOOST_STATIC_ASSERT(is_body_writer>::value);
20 |
21 | } // http
22 | } // beast
23 | } // boost
24 |
--------------------------------------------------------------------------------
/example/http/server/sync-ssl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/http/server/sync-ssl "/")
13 |
14 | add_executable (http-server-sync-ssl
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
17 | Jamfile
18 | http_server_sync_ssl.cpp
19 | )
20 | target_link_libraries (http-server-sync-ssl
21 | ${OPENSSL_LIBRARIES}
22 | )
23 |
--------------------------------------------------------------------------------
/example/http/client/coro-ssl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/http/client/coro-ssl "/")
13 |
14 | add_executable (http-client-coro-ssl
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
17 | Jamfile
18 | http_client_coro_ssl.cpp
19 | )
20 |
21 | target_link_libraries (http-client-coro-ssl
22 | ${OPENSSL_LIBRARIES}
23 | )
24 |
--------------------------------------------------------------------------------
/example/http/client/sync-ssl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/http/client/sync-ssl "/")
13 |
14 | add_executable (http-client-sync-ssl
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
17 | Jamfile
18 | http_client_sync_ssl.cpp
19 | )
20 |
21 | target_link_libraries (http-client-sync-ssl
22 | ${OPENSSL_LIBRARIES}
23 | )
24 |
--------------------------------------------------------------------------------
/example/http/server/coro-ssl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/http/server/coro-ssl "/")
13 |
14 | add_executable (http-server-coro-ssl
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
17 | Jamfile
18 | http_server_coro_ssl.cpp
19 | )
20 |
21 | target_link_libraries (http-server-coro-ssl
22 | ${OPENSSL_LIBRARIES}
23 | )
24 |
--------------------------------------------------------------------------------
/example/http/client/async-ssl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/http/client/async-ssl "/")
13 |
14 | add_executable (http-client-async-ssl
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
17 | Jamfile
18 | http_client_async_ssl.cpp
19 | )
20 |
21 | target_link_libraries (http-client-async-ssl
22 | ${OPENSSL_LIBRARIES}
23 | )
24 |
--------------------------------------------------------------------------------
/example/http/server/async-ssl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/http/server/async-ssl "/")
13 |
14 | add_executable (http-server-async-ssl
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
17 | Jamfile
18 | http_server_async_ssl.cpp
19 | )
20 |
21 | target_link_libraries (http-server-async-ssl
22 | ${OPENSSL_LIBRARIES}
23 | )
24 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/gzclose.c:
--------------------------------------------------------------------------------
1 | /* gzclose.c -- zlib gzclose() function
2 | * Copyright (C) 2004, 2010 Mark Adler
3 | * For conditions of distribution and use, see copyright notice in zlib.h
4 | */
5 |
6 | #include "gzguts.h"
7 |
8 | /* gzclose() is in a separate file so that it is linked in only if it is used.
9 | That way the other gzclose functions can be used instead to avoid linking in
10 | unneeded compression or decompression routines. */
11 | int ZEXPORT gzclose(file)
12 | gzFile file;
13 | {
14 | #ifndef NO_GZCOMPRESS
15 | gz_statep state;
16 |
17 | if (file == NULL)
18 | return Z_STREAM_ERROR;
19 | state = (gz_statep)file;
20 |
21 | return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
22 | #else
23 | return gzclose_r(file);
24 | #endif
25 | }
26 |
--------------------------------------------------------------------------------
/example/http/server/stackless-ssl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/http/server/stackless-ssl "/")
13 |
14 | add_executable (http-server-stackless-ssl
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
17 | Jamfile
18 | http_server_stackless_ssl.cpp
19 | )
20 |
21 | target_link_libraries (http-server-stackless-ssl
22 | ${OPENSSL_LIBRARIES}
23 | )
24 |
--------------------------------------------------------------------------------
/example/websocket/client/coro-ssl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/websocket/client/coro-ssl "/")
13 |
14 | add_executable (websocket-client-coro-ssl
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
17 | Jamfile
18 | websocket_client_coro_ssl.cpp
19 | )
20 |
21 | target_link_libraries (websocket-client-coro-ssl
22 | ${OPENSSL_LIBRARIES}
23 | )
24 |
--------------------------------------------------------------------------------
/example/websocket/client/sync-ssl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/websocket/client/sync-ssl "/")
13 |
14 | add_executable (websocket-client-sync-ssl
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
17 | Jamfile
18 | websocket_client_sync_ssl.cpp
19 | )
20 |
21 | target_link_libraries (websocket-client-sync-ssl
22 | ${OPENSSL_LIBRARIES}
23 | )
24 |
--------------------------------------------------------------------------------
/example/websocket/server/coro-ssl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/websocket/server/coro-ssl "/")
13 |
14 | add_executable (websocket-server-coro-ssl
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
17 | Jamfile
18 | websocket_server_coro_ssl.cpp
19 | )
20 |
21 | target_link_libraries (websocket-server-coro-ssl
22 | ${OPENSSL_LIBRARIES}
23 | )
24 |
--------------------------------------------------------------------------------
/example/websocket/server/sync-ssl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/websocket/server/sync-ssl "/")
13 |
14 | add_executable (websocket-server-sync-ssl
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
17 | Jamfile
18 | websocket_server_sync_ssl.cpp
19 | )
20 |
21 | target_link_libraries (websocket-server-sync-ssl
22 | ${OPENSSL_LIBRARIES}
23 | )
24 |
--------------------------------------------------------------------------------
/test/bench/parser/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(test/extras/include/boost/beast extras)
11 | GroupSources(include/boost/beast beast)
12 | GroupSources(test/beast/http "/")
13 | GroupSources(test/bench/parser "/")
14 |
15 | add_executable (bench-parser
16 | ${BOOST_BEAST_INCLUDES}
17 | ${EXTRAS_INCLUDES}
18 | ${TEST_MAIN}
19 | Jamfile
20 | ${PROJECT_SOURCE_DIR}/test/beast/http/message_fuzz.hpp
21 | nodejs_parser.hpp
22 | nodejs_parser.cpp
23 | bench_parser.cpp
24 | )
25 |
--------------------------------------------------------------------------------
/example/websocket/client/async-ssl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/websocket/client/async-ssl "/")
13 |
14 | add_executable (websocket-client-async-ssl
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
17 | Jamfile
18 | websocket_client_async_ssl.cpp
19 | )
20 |
21 | target_link_libraries (websocket-client-async-ssl
22 | ${OPENSSL_LIBRARIES}
23 | )
24 |
--------------------------------------------------------------------------------
/example/websocket/server/async-ssl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/websocket/server/async-ssl "/")
13 |
14 | add_executable (websocket-server-async-ssl
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
17 | Jamfile
18 | websocket_server_async_ssl.cpp
19 | )
20 |
21 | target_link_libraries (websocket-server-async-ssl
22 | ${OPENSSL_LIBRARIES}
23 | )
24 |
--------------------------------------------------------------------------------
/test/beast/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | alias run-tests :
11 | [ compile config.cpp ]
12 | [ compile core.cpp ]
13 | [ compile http.cpp ]
14 | [ compile version.cpp ]
15 | [ compile websocket.cpp ]
16 | [ compile zlib.cpp ]
17 | core//run-tests
18 | http//run-tests
19 | websocket//run-tests
20 | zlib//run-tests
21 | ;
22 |
23 | alias fat-tests :
24 | core//fat-tests
25 | http//fat-tests
26 | websocket//fat-tests
27 | zlib//fat-tests
28 | ;
29 |
30 | explicit fat-tests ;
31 |
--------------------------------------------------------------------------------
/example/http/server/flex/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/http/server/flex "/")
13 |
14 | add_executable (http-server-flex
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/detect_ssl.hpp
17 | ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
18 | Jamfile
19 | http_server_flex.cpp
20 | )
21 |
22 | target_link_libraries (http-server-flex
23 | ${OPENSSL_LIBRARIES}
24 | )
25 |
--------------------------------------------------------------------------------
/test/doc/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(example example)
11 | GroupSources(test/extras/include/boost/beast extras)
12 | GroupSources(include/boost/beast beast)
13 | GroupSources(test/doc "/")
14 |
15 | add_executable (tests-doc
16 | ${BOOST_BEAST_INCLUDES}
17 | ${EXAMPLE_INCLUDES}
18 | ${EXTRAS_INCLUDES}
19 | ${TEST_MAIN}
20 | Jamfile
21 | core_examples.cpp
22 | core_snippets.cpp
23 | http_examples.cpp
24 | http_snippets.cpp
25 | websocket_snippets.cpp
26 | exemplars.cpp
27 | )
28 |
--------------------------------------------------------------------------------
/example/websocket/server/stackless-ssl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/websocket/server/stackless-ssl "/")
13 |
14 | add_executable (websocket-server-stackless-ssl
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
17 | Jamfile
18 | websocket_server_stackless_ssl.cpp
19 | )
20 |
21 | target_link_libraries (websocket-server-stackless-ssl
22 | ${OPENSSL_LIBRARIES}
23 | )
24 |
--------------------------------------------------------------------------------
/test/example/common/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(example/common common)
11 | GroupSources(test/extras/include/boost/beast extras)
12 | GroupSources(include/boost/beast beast)
13 | GroupSources(test/example/common "/")
14 |
15 | add_executable (tests-example-common
16 | ${BOOST_BEAST_INCLUDES}
17 | ${COMMON_INCLUDES}
18 | Jamfile
19 | detect_ssl.cpp
20 | root_certificates.cpp
21 | server_certificate.cpp
22 | session_alloc.cpp
23 | ssl_stream.cpp
24 | write_msg.cpp
25 | main.cpp
26 | )
27 |
--------------------------------------------------------------------------------
/doc/qbk/07_concepts.qbk:
--------------------------------------------------------------------------------
1 | [/
2 | Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 |
4 | Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 |
7 | Official repository: https://github.com/boostorg/beast
8 | ]
9 |
10 | [section:concepts Concepts]
11 |
12 | This section describes all of the concepts defined by the library.
13 |
14 | [include 07_concepts/Body.qbk]
15 | [include 07_concepts/BodyReader.qbk]
16 | [include 07_concepts/BodyWriter.qbk]
17 | [include 07_concepts/BufferSequence.qbk]
18 | [include 07_concepts/DynamicBuffer.qbk]
19 | [include 07_concepts/Fields.qbk]
20 | [include 07_concepts/FieldsReader.qbk]
21 | [include 07_concepts/File.qbk]
22 | [include 07_concepts/Streams.qbk]
23 |
24 | [endsect]
25 |
--------------------------------------------------------------------------------
/test/beast/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(test/extras/include/boost/beast extras)
12 | GroupSources(test/beast "/")
13 |
14 | add_executable (tests-beast
15 | ${BOOST_BEAST_INCLUDES}
16 | ${EXTRAS_INCLUDES}
17 | ${TEST_MAIN}
18 | Jamfile
19 | config.cpp
20 | core.cpp
21 | http.cpp
22 | version.cpp
23 | websocket.cpp
24 | zlib.cpp
25 | )
26 |
27 | add_subdirectory (core)
28 | add_subdirectory (http)
29 | add_subdirectory (websocket)
30 | add_subdirectory (zlib)
31 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/iostream2/zstream_test.cpp:
--------------------------------------------------------------------------------
1 | #include "zstream.h"
2 | #include
3 | #include
4 | #include
5 |
6 | void main() {
7 | char h[256] = "Hello";
8 | char* g = "Goodbye";
9 | ozstream out("temp.gz");
10 | out < "This works well" < h < g;
11 | out.close();
12 |
13 | izstream in("temp.gz"); // read it back
14 | char *x = read_string(in), *y = new char[256], z[256];
15 | in > y > z;
16 | in.close();
17 | cout << x << endl << y << endl << z << endl;
18 |
19 | out.open("temp.gz"); // try ascii output; zcat temp.gz to see the results
20 | out << setw(50) << setfill('#') << setprecision(20) << x << endl << y << endl << z << endl;
21 | out << z << endl << y << endl << x << endl;
22 | out << 1.1234567890123456789 << endl;
23 |
24 | delete[] x; delete[] y;
25 | }
26 |
--------------------------------------------------------------------------------
/doc/xsl/includes_foot.xsl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
Convenience header [include_file boost/beast/core.hpp]
5 |
6 |
7 |
Convenience header [include_file boost/beast/http.hpp]
8 |
9 |
10 |
Convenience header [include_file boost/beast/websocket.hpp]
11 |
12 |
13 |
Convenience header [include_file boost/beast/zlib.hpp]
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/test/bench/zlib/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(test/extras/include/boost/beast extras)
12 | GroupSources(test/extern/zlib-1.2.11 zlib)
13 | GroupSources(test/bench/zlib "/")
14 |
15 | if (MSVC)
16 | set_source_files_properties (${ZLIB_SOURCES} PROPERTIES COMPILE_FLAGS "/wd4127 /wd4131 /wd4244")
17 | endif()
18 |
19 | add_executable (bench-zlib
20 | ${BOOST_BEAST_INCLUDES}
21 | ${EXTRAS_INCLUDES}
22 | ${ZLIB_SOURCES}
23 | ${TEST_MAIN}
24 | Jamfile
25 | deflate_stream.cpp
26 | inflate_stream.cpp
27 | )
28 |
--------------------------------------------------------------------------------
/include/boost/beast/http/dynamic_body.hpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | #ifndef BOOST_BEAST_HTTP_DYNAMIC_BODY_HPP
11 | #define BOOST_BEAST_HTTP_DYNAMIC_BODY_HPP
12 |
13 | #include
14 | #include
15 |
16 | namespace boost {
17 | namespace beast {
18 | namespace http {
19 |
20 | /** A dynamic message body represented by a @ref multi_buffer
21 |
22 | Meets the requirements of @b Body.
23 | */
24 | using dynamic_body = basic_dynamic_body;
25 |
26 | } // http
27 | } // beast
28 | } // boost
29 |
30 | #endif
31 |
--------------------------------------------------------------------------------
/include/boost/beast/version.hpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | #ifndef BOOST_BEAST_VERSION_HPP
11 | #define BOOST_BEAST_VERSION_HPP
12 |
13 | #include
14 | #include
15 |
16 | /** @def BOOST_BEAST_API_VERSION
17 |
18 | Identifies the API version of Beast.
19 |
20 | This is a simple integer that is incremented by one every
21 | time a set of code changes is merged to the develop branch.
22 | */
23 | #define BOOST_BEAST_VERSION 116
24 |
25 | #define BOOST_BEAST_VERSION_STRING "Boost.Beast/" BOOST_STRINGIZE(BOOST_BEAST_VERSION)
26 |
27 | #endif
28 |
29 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/minizip/mztools.h:
--------------------------------------------------------------------------------
1 | /*
2 | Additional tools for Minizip
3 | Code: Xavier Roche '2004
4 | License: Same as ZLIB (www.gzip.org)
5 | */
6 |
7 | #ifndef _zip_tools_H
8 | #define _zip_tools_H
9 |
10 | #ifdef __cplusplus
11 | extern "C" {
12 | #endif
13 |
14 | #ifndef _ZLIB_H
15 | #include "zlib.h"
16 | #endif
17 |
18 | #include "unzip.h"
19 |
20 | /* Repair a ZIP file (missing central directory)
21 | file: file to recover
22 | fileOut: output file after recovery
23 | fileOutTmp: temporary file name used for recovery
24 | */
25 | extern int ZEXPORT unzRepair(const char* file,
26 | const char* fileOut,
27 | const char* fileOutTmp,
28 | uLong* nRecovered,
29 | uLong* bytesRecovered);
30 |
31 |
32 | #ifdef __cplusplus
33 | }
34 | #endif
35 |
36 |
37 | #endif
38 |
--------------------------------------------------------------------------------
/example/advanced/server-flex/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(example/common common)
12 | GroupSources(example/advanced/server-flex "/")
13 |
14 | add_executable (advanced-server-flex
15 | ${BOOST_BEAST_INCLUDES}
16 | ${PROJECT_SOURCE_DIR}/example/common/detect_ssl.hpp
17 | ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
18 | ${PROJECT_SOURCE_DIR}/example/common/ssl_stream.hpp
19 | Jamfile
20 | advanced_server_flex.cpp
21 | )
22 |
23 | target_link_libraries (advanced-server-flex
24 | ${OPENSSL_LIBRARIES}
25 | )
26 |
--------------------------------------------------------------------------------
/test/beast/zlib/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(include/boost/beast beast)
11 | GroupSources(test/extras/include/boost/beast extras)
12 | GroupSources(test/extern/zlib-1.2.11 zlib)
13 | GroupSources(test/beast/zlib "/")
14 |
15 | if (MSVC)
16 | set_source_files_properties (${ZLIB_SOURCES} PROPERTIES COMPILE_FLAGS "/wd4127 /wd4131 /wd4244")
17 | endif()
18 |
19 | add_executable (tests-beast-zlib
20 | ${BOOST_BEAST_INCLUDES}
21 | ${EXTRAS_INCLUDES}
22 | ${ZLIB_SOURCES}
23 | ${TEST_MAIN}
24 | Jamfile
25 | error.cpp
26 | deflate_stream.cpp
27 | inflate_stream.cpp
28 | )
29 |
--------------------------------------------------------------------------------
/test/beast/websocket/Jamfile:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | local SOURCES =
11 | accept.cpp
12 | close.cpp
13 | error.cpp
14 | frame.cpp
15 | handshake.cpp
16 | mask.cpp
17 | option.cpp
18 | ping.cpp
19 | read.cpp
20 | rfc6455.cpp
21 | role.cpp
22 | stream.cpp
23 | teardown.cpp
24 | utf8_checker.cpp
25 | write.cpp
26 | ;
27 |
28 | local RUN_TESTS ;
29 |
30 | for local f in $(SOURCES)
31 | {
32 | RUN_TESTS += [ run $(f) $(TEST_MAIN) ] ;
33 | }
34 |
35 | alias run-tests : $(RUN_TESTS) ;
36 |
37 | exe fat-tests : $(TEST_MAIN) $(SOURCES) ;
38 |
39 | explicit fat-tests ;
40 |
--------------------------------------------------------------------------------
/test/beast/websocket/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | #
4 | # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | #
7 | # Official repository: https://github.com/boostorg/beast
8 | #
9 |
10 | GroupSources(test/extras/include/boost/beast extras)
11 | GroupSources(include/boost/beast beast)
12 | GroupSources(test/beast/websocket "/")
13 |
14 | add_executable (tests-beast-websocket
15 | ${BOOST_BEAST_INCLUDES}
16 | ${EXTRAS_INCLUDES}
17 | ${TEST_MAIN}
18 | Jamfile
19 | test.hpp
20 | accept.cpp
21 | close.cpp
22 | error.cpp
23 | frame.cpp
24 | handshake.cpp
25 | mask.cpp
26 | option.cpp
27 | ping.cpp
28 | read.cpp
29 | rfc6455.cpp
30 | role.cpp
31 | stream.cpp
32 | teardown.cpp
33 | utf8_checker.cpp
34 | write.cpp
35 | )
36 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/minizip/configure.ac:
--------------------------------------------------------------------------------
1 | # -*- Autoconf -*-
2 | # Process this file with autoconf to produce a configure script.
3 |
4 | AC_INIT([minizip], [1.2.11], [bugzilla.redhat.com])
5 | AC_CONFIG_SRCDIR([minizip.c])
6 | AM_INIT_AUTOMAKE([foreign])
7 | LT_INIT
8 |
9 | AC_MSG_CHECKING([whether to build example programs])
10 | AC_ARG_ENABLE([demos], AC_HELP_STRING([--enable-demos], [build example programs]))
11 | AM_CONDITIONAL([COND_DEMOS], [test "$enable_demos" = yes])
12 | if test "$enable_demos" = yes
13 | then
14 | AC_MSG_RESULT([yes])
15 | else
16 | AC_MSG_RESULT([no])
17 | fi
18 |
19 | case "${host}" in
20 | *-mingw* | mingw*)
21 | WIN32="yes"
22 | ;;
23 | *)
24 | ;;
25 | esac
26 | AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"])
27 |
28 |
29 | AC_SUBST([HAVE_UNISTD_H], [0])
30 | AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], [])
31 | AC_CONFIG_FILES([Makefile minizip.pc])
32 | AC_OUTPUT
33 |
--------------------------------------------------------------------------------
/test/bench/parser/nodejs_parser.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | #if defined(__GNUC__) && (__GNUC__ >= 7)
11 | #pragma GCC diagnostic push
12 | #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
13 | #endif
14 |
15 | #include
16 |
17 | #ifdef BOOST_MSVC
18 | # pragma warning (push)
19 | # pragma warning (disable: 4127) // conditional expression is constant
20 | # pragma warning (disable: 4244) // integer conversion, possible loss of data
21 | #endif
22 |
23 | #include "nodejs-parser/http_parser.c"
24 |
25 | #ifdef BOOST_MSVC
26 | # pragma warning (pop)
27 | #endif
28 |
29 | #if defined(__GNUC__) && (__GNUC__ >= 7)
30 | #pragma GCC diagnostic pop
31 | #endif
32 |
--------------------------------------------------------------------------------
/test/beast/http/type_traits.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
13 | #include
14 | #include
15 |
16 | namespace boost {
17 | namespace beast {
18 | namespace http {
19 |
20 | BOOST_STATIC_ASSERT(! is_body_reader::value);
21 |
22 | BOOST_STATIC_ASSERT(is_body_reader::value);
23 |
24 | BOOST_STATIC_ASSERT(! is_body_writer::value);
25 |
26 | namespace {
27 |
28 | struct not_fields {};
29 |
30 | } // (anonymous)
31 |
32 | BOOST_STATIC_ASSERT(! is_fields::value);
33 |
34 | } // http
35 | } // beast
36 | } // boost
37 |
--------------------------------------------------------------------------------
/test/extras/include/boost/beast/test/sig_wait.hpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | #ifndef BOOST_BEAST_TEST_SIG_WAIT_HPP
11 | #define BOOST_BEAST_TEST_SIG_WAIT_HPP
12 |
13 | #include
14 |
15 | namespace boost {
16 | namespace beast {
17 | namespace test {
18 |
19 | /// Block until SIGINT or SIGTERM is received.
20 | inline
21 | void
22 | sig_wait()
23 | {
24 | boost::asio::io_service ios;
25 | boost::asio::signal_set signals(
26 | ios, SIGINT, SIGTERM);
27 | signals.async_wait(
28 | [&](boost::system::error_code const&, int)
29 | {
30 | });
31 | ios.run();
32 | }
33 |
34 | } // test
35 | } // beast
36 | } // boost
37 |
38 | #endif
39 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/masmx86/readme.txt:
--------------------------------------------------------------------------------
1 |
2 | Summary
3 | -------
4 | This directory contains ASM implementations of the functions
5 | longest_match() and inflate_fast().
6 |
7 |
8 | Use instructions
9 | ----------------
10 | Assemble using MASM, and copy the object files into the zlib source
11 | directory, then run the appropriate makefile, as suggested below. You can
12 | donwload MASM from here:
13 |
14 | http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=7a1c9da0-0510-44a2-b042-7ef370530c64
15 |
16 | You can also get objects files here:
17 |
18 | http://www.winimage.com/zLibDll/zlib124_masm_obj.zip
19 |
20 | Build instructions
21 | ------------------
22 | * With Microsoft C and MASM:
23 | nmake -f win32/Makefile.msc LOC="-DASMV -DASMINF" OBJA="match686.obj inffas32.obj"
24 |
25 | * With Borland C and TASM:
26 | make -f win32/Makefile.bor LOCAL_ZLIB="-DASMV -DASMINF" OBJA="match686.obj inffas32.obj" OBJPA="+match686c.obj+match686.obj+inffas32.obj"
27 |
28 |
--------------------------------------------------------------------------------
/test/beast/core/file_stdio.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | // Test that header file is self-contained.
11 | #include
12 |
13 | #include "file_test.hpp"
14 |
15 | #include
16 | #include
17 |
18 | namespace boost {
19 | namespace beast {
20 |
21 | BOOST_STATIC_ASSERT(! std::is_copy_constructible::value);
22 |
23 | class file_stdio_test
24 | : public beast::unit_test::suite
25 | {
26 | public:
27 | void
28 | run()
29 | {
30 | doTestFile(*this);
31 | }
32 | };
33 |
34 | BEAST_DEFINE_TESTSUITE(beast,core,file_stdio);
35 |
36 | } // beast
37 | } // boost
38 |
--------------------------------------------------------------------------------
/test/extern/zlib-1.2.11/contrib/minizip/iowin32.h:
--------------------------------------------------------------------------------
1 | /* iowin32.h -- IO base function header for compress/uncompress .zip
2 | Version 1.1, February 14h, 2010
3 | part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html )
4 |
5 | Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html )
6 |
7 | Modifications for Zip64 support
8 | Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com )
9 |
10 | For more info read MiniZip_info.txt
11 |
12 | */
13 |
14 | #include
15 |
16 |
17 | #ifdef __cplusplus
18 | extern "C" {
19 | #endif
20 |
21 | void fill_win32_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def));
22 | void fill_win32_filefunc64 OF((zlib_filefunc64_def* pzlib_filefunc_def));
23 | void fill_win32_filefunc64A OF((zlib_filefunc64_def* pzlib_filefunc_def));
24 | void fill_win32_filefunc64W OF((zlib_filefunc64_def* pzlib_filefunc_def));
25 |
26 | #ifdef __cplusplus
27 | }
28 | #endif
29 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | PLEASE DON'T FORGET TO "STAR" THIS REPOSITORY :)
2 |
3 | If you rather keep your project secret, feel free
4 | to email the author at ``; any
5 | private correspondence is treated as confidential.
6 |
7 | When reporting a bug please include the following:
8 |
9 | ### Version of Beast
10 |
11 | You can find the version number in the file ``,
12 | or by using the command "git log -1" in the local Beast repository
13 | directory.
14 |
15 | ### Steps necessary to reproduce the problem
16 |
17 | A small compiling program is the best. If your code is
18 | public, you can provide a link to the repository.
19 |
20 | ### All relevant compiler information
21 |
22 | If you are unable to compile please include the type and
23 | version of compiler you are using as well as all compiler
24 | output including the error message, file, and line numbers
25 | involved.
26 |
27 | The more information you provide the sooner your issue
28 | can get resolved!
29 |
--------------------------------------------------------------------------------
/include/boost/beast/http/file_body.hpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 | //
7 | // Official repository: https://github.com/boostorg/beast
8 | //
9 |
10 | #ifndef BOOST_BEAST_HTTP_FILE_BODY_HPP
11 | #define BOOST_BEAST_HTTP_FILE_BODY_HPP
12 |
13 | #include
14 | #include