mirror of
https://github.com/ZmnSCPxj/clboss.git
synced 2026-08-13 12:33:20 +02:00
19 lines
353 B
C++
19 lines
353 B
C++
#ifndef NET_DIRECTCONNECTOR_HPP
|
|
#define NET_DIRECTCONNECTOR_HPP
|
|
|
|
#include"Net/Connector.hpp"
|
|
|
|
namespace Net {
|
|
|
|
/* A Connector that just connects directly to
|
|
* the specified host:port.
|
|
*/
|
|
class DirectConnector : public Connector {
|
|
public:
|
|
Net::SocketFd
|
|
connect(std::string const& host, int port) override;
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* NET_DIRECTCONNECTOR_HPP */
|