Imported Upstream version 0.3.4
[anytun.git] / src / anyrtpproxy / portWindow.h
index b5a667f..d552ae1 100644 (file)
@@ -11,7 +11,7 @@
  *  tunneling and relaying of packets of any protocol.
  *
  *
- *  Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl, 
+ *  Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl,
  *                          Christian Pointner <satp@wirdorange.org>
  *
  *  This file is part of Anytun.
 class PortWindow
 {
 public:
-  typedef std::set<u_int16_t> PortSet;
+  typedef std::set<uint16_t> PortSet;
 
-  PortWindow(u_int16_t,u_int16_t);
+  PortWindow(uint16_t,uint16_t);
   ~PortWindow();
 
   PortSet::size_type getLength();
-  bool hasPort(u_int16_t);
-  bool freePort(u_int16_t);
-  u_int16_t newPort();
+  bool hasPort(uint16_t);
+  bool freePort(uint16_t);
+  uint16_t newPort();
   void clear();
 
 
 private:
-       u_int16_t start_port_;
-       u_int16_t end_port_;
+  uint16_t start_port_;
+  uint16_t end_port_;
   ::Mutex mutex_;
-       PortSet ports_;
+  PortSet ports_;
 
-  PortWindow(const PortWindow &s);
-  void operator=(const PortWindow &s);
+  PortWindow(const PortWindows);
+  void operator=(const PortWindows);
 };
 
 #endif