diff options
author | Markus Grüneis <gimpf@gimpf.org> | 2010-02-18 09:15:27 +0000 |
---|---|---|
committer | Markus Grüneis <gimpf@gimpf.org> | 2010-02-18 09:15:27 +0000 |
commit | e191eab68d905bfe14e3590a92fa653f0ae2ebce (patch) | |
tree | a5837b067ecab92c645008b537087b0d163ef1ab /src/anyrtpproxy/portWindow.cpp | |
parent | whitespace 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.cpp')
-rw-r--r-- | src/anyrtpproxy/portWindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/anyrtpproxy/portWindow.cpp b/src/anyrtpproxy/portWindow.cpp index ed23686..3ef1767 100644 --- a/src/anyrtpproxy/portWindow.cpp +++ b/src/anyrtpproxy/portWindow.cpp @@ -32,7 +32,7 @@ #include "portWindow.h" -PortWindow::PortWindow(u_int16_t start, u_int16_t end) : start_port_(start), end_port_(end) +PortWindow::PortWindow(uint16_t start, uint16_t end) : start_port_(start), end_port_(end) { } @@ -46,7 +46,7 @@ PortWindow::PortSet::size_type PortWindow::getLength() return ports_.size(); } -bool PortWindow::hasPort(u_int16_t port) +bool PortWindow::hasPort(uint16_t port) { Lock lock(mutex_); @@ -57,7 +57,7 @@ bool PortWindow::hasPort(u_int16_t port) return true; } -bool PortWindow::freePort(u_int16_t port) +bool PortWindow::freePort(uint16_t port) { Lock lock(mutex_); @@ -69,10 +69,10 @@ bool PortWindow::freePort(u_int16_t port) return true; } -u_int16_t PortWindow::newPort() +uint16_t PortWindow::newPort() { Lock lock(mutex_); - u_int16_t port= start_port_; + uint16_t port= start_port_; while(port<end_port_ && ports_.find(port) !=ports_.end()) { port++; } |