Line data Source code
1 : //
2 : // Author: Vladimir Migashko <migashko@gmail.com>, (C) 2013-2018
3 : //
4 : // Copyright: See COPYING file that comes with this distribution
5 : //
6 :
7 : #pragma once
8 :
9 : #include <iostream>
10 : #include "tcp_acceptor.hpp"
11 : #include "tcp_connection.hpp"
12 : #include <iow/ip/tcp/acceptor/options.hpp>
13 : #include <iow/ip/tcp/server/options.hpp>
14 : #include <iow/ip/tcp/connection/options.hpp>
15 : #include <wfc/iinterface.hpp>
16 :
17 : namespace wfc{ namespace io{
18 :
19 0 : struct tcp_connection_options
20 : : ::iow::ip::tcp::connection::options
21 : {
22 : std::weak_ptr<iinterface> target;
23 : bool direct_mode = false;
24 : };
25 :
26 : typedef ::iow::ip::tcp::acceptor::options< tcp_connection, tcp_connection_options > tcp_acceptor_options;
27 : typedef ::iow::ip::tcp::server::options< tcp_acceptor_options > tcp_options;
28 :
29 : }}
|