LCOV - code coverage report
Current view: top level - eventdispatcher - udp_server_message_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/udp_server_connection.h"
      21             : #include "eventdispatcher/dispatcher_support.h"
      22             : 
      23             : 
      24             : //// cppthread lib
      25             : ////
      26             : //#include "cppthread/thread.h"
      27             : //
      28             : //
      29             : //// snapdev lib
      30             : ////
      31             : //#include "snapdev/not_used.h"
      32             : //
      33             : //
      34             : //// C lib
      35             : ////
      36             : //#include <signal.h>
      37             : //#include <sys/signalfd.h>
      38             : 
      39             : 
      40             : 
      41             : namespace ed
      42             : {
      43             : 
      44             : 
      45             : 
      46           0 : class udp_server_message_connection
      47             :     : public udp_server_connection
      48             :     , public dispatcher_support
      49             : {
      50             : public:
      51             :     typedef std::shared_ptr<udp_server_message_connection>    pointer_t;
      52             : 
      53             :     static size_t const         DATAGRAM_MAX_SIZE = 1024;
      54             : 
      55             :                                 udp_server_message_connection(std::string const & addr, int port);
      56             : 
      57             :     static bool                 send_message(
      58             :                                           std::string const & addr
      59             :                                         , int port
      60             :                                         , message const & msg
      61             :                                         , std::string const & secret_code = std::string());
      62             : 
      63             :     // connection implementation
      64             :     virtual void                process_read() override;
      65             : 
      66             : private:
      67             : };
      68             : 
      69             : 
      70             : 
      71             : } // namespace ed
      72             : // vim: ts=4 sw=4 et

Generated by: LCOV version 1.12