icinga2/base/tcpsocket.h

23 lines
374 B
C
Raw Normal View History

#ifndef TCPSOCKET_H
#define TCPSOCKET_H
2012-03-28 13:24:49 +02:00
namespace icinga
{
class I2_BASE_API TCPSocket : public Socket
2012-03-28 13:24:49 +02:00
{
private:
2012-04-27 09:54:07 +02:00
void MakeSocket(int family);
2012-03-28 13:24:49 +02:00
public:
typedef shared_ptr<TCPSocket> Ptr;
typedef weak_ptr<TCPSocket> WeakPtr;
2012-03-28 13:24:49 +02:00
2012-04-27 09:54:07 +02:00
void Bind(unsigned short port, int family);
void Bind(const char *hostname, unsigned short port, int family);
2012-03-28 13:24:49 +02:00
};
}
#endif /* TCPSOCKET_H */