LCOV - code coverage report
Current view: top level - eventdispatcher - tcp_server_connection.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 1 0.0 %
Date: 2019-08-08 02:52:36 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : // Copyright (c) 2012-2019  Made to Order Software Corp.  All Rights Reserved
       2             : //
       3             : // This program is free software; you can redistribute it and/or modify
       4             : // it under the terms of the GNU General Public License as published by
       5             : // the Free Software Foundation; either version 2 of the License, or
       6             : // (at your option) any later version.
       7             : //
       8             : // This program is distributed in the hope that it will be useful,
       9             : // but WITHOUT ANY WARRANTY; without even the implied warranty of
      10             : // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      11             : // GNU General Public License for more details.
      12             : //
      13             : // You should have received a copy of the GNU General Public License
      14             : // along with this program; if not, write to the Free Software
      15             : // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
      16             : #pragma once
      17             : 
      18             : // self
      19             : //
      20             : #include    "eventdispatcher/connection.h"
      21             : #include    "eventdispatcher/tcp_bio_server.h"
      22             : //#include "eventdispatcher/udp_client_server.h"
      23             : //#include "eventdispatcher/utils.h"
      24             : //
      25             : //
      26             : //// cppthread lib
      27             : ////
      28             : //#include "cppthread/thread.h"
      29             : //
      30             : //
      31             : //// snapdev lib
      32             : ////
      33             : //#include "snapdev/not_used.h"
      34             : //
      35             : //
      36             : //// C lib
      37             : ////
      38             : //#include <signal.h>
      39             : //#include <sys/signalfd.h>
      40             : 
      41             : 
      42             : 
      43             : namespace ed
      44             : {
      45             : 
      46             : 
      47             : 
      48           0 : class tcp_server_connection
      49             :     : public connection
      50             :     , public tcp_bio_server
      51             : {
      52             : public:
      53             :     typedef std::shared_ptr<tcp_server_connection>    pointer_t;
      54             : 
      55             :                                 tcp_server_connection(
      56             :                                       std::string const & addr
      57             :                                     , int port
      58             :                                     , std::string const & certificate
      59             :                                     , std::string const & private_key
      60             :                                     , mode_t mode = mode_t::MODE_PLAIN
      61             :                                     , int max_connections = -1
      62             :                                     , bool reuse_addr = false);
      63             : 
      64             :     // snap_connection implementation
      65             :     virtual bool                is_listener() const override;
      66             :     virtual int                 get_socket() const override;
      67             : };
      68             : 
      69             : 
      70             : 
      71             : } // namespace ed
      72             : // vim: ts=4 sw=4 et

Generated by: LCOV version 1.12