sockpp
Modern C++ socket library wrapper
tcp_acceptor.h
Go to the documentation of this file.
1 
11 // --------------------------------------------------------------------------
12 // This file is part of the "sockpp" C++ socket library.
13 //
14 // Copyright (c) 2014-2019 Frank Pagliughi
15 // All rights reserved.
16 //
17 // Redistribution and use in source and binary forms, with or without
18 // modification, are permitted provided that the following conditions are
19 // met:
20 //
21 // 1. Redistributions of source code must retain the above copyright notice,
22 // this list of conditions and the following disclaimer.
23 //
24 // 2. Redistributions in binary form must reproduce the above copyright
25 // notice, this list of conditions and the following disclaimer in the
26 // documentation and/or other materials provided with the distribution.
27 //
28 // 3. Neither the name of the copyright holder nor the names of its
29 // contributors may be used to endorse or promote products derived from this
30 // software without specific prior written permission.
31 //
32 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
33 // IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
34 // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
35 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
36 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
37 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
38 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
39 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
40 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
41 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
42 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43 // --------------------------------------------------------------------------
44 
45 #ifndef __sockpp_tcp_acceptor_h
46 #define __sockpp_tcp_acceptor_h
47 
48 #include "sockpp/acceptor.h"
49 #include "sockpp/tcp_socket.h"
50 
51 namespace sockpp {
52 
54 
61 
63 
65 // end namespace sockpp
66 };
67 
68 #endif // __sockpp_tcp_acceptor_h
69 
Class for a TCP server to accept incoming connections.
Definition: acceptor.h:51
Base template class for streaming servers of specific address families.
Definition: acceptor.h:171
Class (typedef) for IPv4 TCP socket.