"Fossies" - the Fresh Open Source Software Archive

Member "portfwd-0.29/src/proto_map.hpp" (28 Jan 2004, 907 Bytes) of package /linux/privat/old/portfwd-0.29.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2   proto_map.hpp
    3 
    4   $Id: proto_map.hpp,v 1.3 2004/01/28 19:14:10 evertonm Exp $
    5  */
    6 
    7 #ifndef PROTO_MAP_HPP
    8 #define PROTO_MAP_HPP
    9 
   10 #include <stdio.h>
   11 #include "host_map.hpp"
   12 #include "solve.h"
   13 
   14 class proto_map
   15 {
   16 private:
   17   vector<int>       *port_list;
   18   vector<host_map*> *map_list;
   19   int               ftp_actv;
   20   int               ftp_pasv;
   21   struct ip_addr    actv_ip;
   22   struct ip_addr    pasv_ip;
   23   int               uid;
   24   int               gid;
   25   struct ip_addr    local_listen;
   26   struct ip_addr    local_source;
   27   struct ip_addr    *local_src;
   28   bool              fragile;
   29 
   30 public:
   31   proto_map(vector<int> *port_l, vector<host_map*> *map_l, struct ip_addr *actv, struct ip_addr *pasv, int user, int group, struct ip_addr listen, struct ip_addr *source);
   32 
   33   void show() const;
   34 
   35   void serve(proto_t proto) const;
   36 
   37   void set_fragile(bool b);
   38 };
   39 
   40 #endif /* PROTO_MAP_HPP */
   41 
   42 /* Eof: proto_map.hpp */