icinga2/base/tcpsocket.h

21 lines
339 B
C
Raw Normal View History

2012-03-28 13:24:49 +02:00
#ifndef I2_TCPSOCKET_H
#define I2_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 /* I2_TCPSOCKET_H */