CARMA C++
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
TcpListener.h
Go to the documentation of this file.
1
#ifndef TCPLISTENER_H
2
#define TCPLISTENER_H
3
11
namespace
sza {
12
namespace
util {
13
14
class
TcpListener {
15
public
:
16
20
TcpListener(
unsigned
port,
unsigned
queueSize);
21
25
virtual
~TcpListener();
26
33
int
acceptConnection(
bool
blocking=
false
);
34
38
inline
int
getFd() {
return
fd_;};
39
40
private
:
41
45
int
fd_;
46
47
};
// End class TcpListener
48
49
};
// End namespace util
50
};
// End namespace sza
51
52
#endif // End #ifndef
53
54
carma
szautil
TcpListener.h
Generated by
1.8.5