icinga2/base/tcpsocket.h

22 lines
323 B
C
Raw Normal View History

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