icinga2/base/tcpsocket.h

23 lines
374 B
C++

#ifndef TCPSOCKET_H
#define TCPSOCKET_H
namespace icinga
{
class I2_BASE_API TCPSocket : public Socket
{
private:
void MakeSocket(int family);
public:
typedef shared_ptr<TCPSocket> Ptr;
typedef weak_ptr<TCPSocket> WeakPtr;
void Bind(unsigned short port, int family);
void Bind(const char *hostname, unsigned short port, int family);
};
}
#endif /* TCPSOCKET_H */