mirror of https://github.com/Icinga/icinga2.git
22 lines
331 B
C++
22 lines
331 B
C++
#ifndef TCPSOCKET_H
|
|
#define TCPSOCKET_H
|
|
|
|
namespace icinga
|
|
{
|
|
|
|
class TCPSocket : public Socket
|
|
{
|
|
public:
|
|
typedef shared_ptr<TCPSocket> RefType;
|
|
typedef weak_ptr<TCPSocket> WeakRefType;
|
|
|
|
void MakeSocket(void);
|
|
|
|
void Bind(unsigned short port);
|
|
void Bind(const char *hostname, unsigned short port);
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* TCPSOCKET_H */
|