"Fossies" - the Fresh Open Source Software Archive

Member "portfwd-0.29/src/port_pair.h" (15 May 2001, 345 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   port_pair.h
    3 
    4   $Id: port_pair.h,v 1.1.1.1 2001/05/15 00:25:00 evertonm Exp $
    5  */
    6 
    7 #ifndef PORT_PAIR_H
    8 #define PORT_PAIR_H
    9 
   10 #include <stdio.h>
   11 
   12 class port_pair {
   13  private:
   14   int first;
   15   int last;
   16 
   17  public:
   18   port_pair(int p1, int p2);
   19 
   20   void show() const;
   21 
   22   int match(int port) const;
   23 };
   24 
   25 #endif /* PORT_PAIR_H */
   26 
   27 /* Eof: port_pair.h */