summaryrefslogtreecommitdiff
path: root/src/anyrtpproxy/portWindow.h
diff options
context:
space:
mode:
authorMarkus Grüneis <gimpf@gimpf.org>2010-02-18 09:15:27 +0000
committerMarkus Grüneis <gimpf@gimpf.org>2010-02-18 09:15:27 +0000
commite191eab68d905bfe14e3590a92fa653f0ae2ebce (patch)
treea5837b067ecab92c645008b537087b0d163ef1ab /src/anyrtpproxy/portWindow.h
parentwhitespace only change: unified formatting with "astyle --style=k/r --indent=... (diff)
non-functional changes only: use standard writing of stdint.h types; still import from boost (compiler compatibility)
Diffstat (limited to 'src/anyrtpproxy/portWindow.h')
-rw-r--r--src/anyrtpproxy/portWindow.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/anyrtpproxy/portWindow.h b/src/anyrtpproxy/portWindow.h
index 74cd4ed..d552ae1 100644
--- a/src/anyrtpproxy/portWindow.h
+++ b/src/anyrtpproxy/portWindow.h
@@ -40,21 +40,21 @@
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_;