projects
/
anytun.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.3.4
[anytun.git]
/
src
/
anyrtpproxy
/
portWindow.h
diff --git
a/src/anyrtpproxy/portWindow.h
b/src/anyrtpproxy/portWindow.h
index
b5a667f
..
d552ae1
100644
(file)
--- a/
src/anyrtpproxy/portWindow.h
+++ b/
src/anyrtpproxy/portWindow.h
@@
-11,7
+11,7
@@
* tunneling and relaying of packets of any protocol.
*
*
* 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.
* Christian Pointner <satp@wirdorange.org>
*
* This file is part of Anytun.
@@
-40,26
+40,26
@@
class PortWindow
{
public:
class PortWindow
{
public:
- typedef std::set<u
_
int16_t> PortSet;
+ typedef std::set<uint16_t> PortSet;
- PortWindow(u
_int16_t,u_
int16_t);
+ PortWindow(u
int16_t,u
int16_t);
~PortWindow();
PortSet::size_type getLength();
~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:
void clear();
private:
-
u_
int16_t start_port_;
-
u_
int16_t end_port_;
+
u
int16_t start_port_;
+
u
int16_t end_port_;
::Mutex mutex_;
::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
};
#endif