icinga2/lib/base/tcpsocket.hpp

31 lines
498 B
C++
Raw Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#ifndef TCPSOCKET_H
#define TCPSOCKET_H
2012-03-28 13:24:49 +02:00
2014-05-25 16:23:35 +02:00
#include "base/i2-base.hpp"
#include "base/socket.hpp"
2013-03-16 21:18:53 +01:00
2012-03-28 13:24:49 +02:00
namespace icinga
{
/**
* A TCP socket.
2012-05-18 22:21:28 +02:00
*
* @ingroup base
*/
2018-01-04 06:11:04 +01:00
class TcpSocket final : public Socket
2012-03-28 13:24:49 +02:00
{
public:
2014-11-07 12:32:25 +01:00
DECLARE_PTR_TYPEDEFS(TcpSocket);
2012-03-28 13:24:49 +02:00
2013-04-04 16:08:02 +02:00
void Bind(const String& service, int family);
void Bind(const String& node, const String& service, int family);
void Connect(const String& node, const String& service);
2012-03-28 13:24:49 +02:00
};
}
#endif /* TCPSOCKET_H */