X-Git-Url: https://git.syn-net.org/debian/?p=anytun.git;a=blobdiff_plain;f=src%2Fanyrtpproxy%2FportWindow.h;h=d552ae136894277bc49d128e49bc861071cce392;hp=b5a667f23c40836f83becf8c59e49510b6496a05;hb=ef0cacf2508418915d3f64b04003be3c13fed3cc;hpb=ece844834d2cecc028ce81ca283f5d441088580e diff --git a/src/anyrtpproxy/portWindow.h b/src/anyrtpproxy/portWindow.h index b5a667f..d552ae1 100644 --- a/src/anyrtpproxy/portWindow.h +++ b/src/anyrtpproxy/portWindow.h @@ -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 * * This file is part of Anytun. @@ -40,26 +40,26 @@ class PortWindow { public: - typedef std::set PortSet; + typedef std::set 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 PortWindow& s); + void operator=(const PortWindow& s); }; #endif