clboss/Net/DirectConnector.hpp
2020-09-14 10:58:33 +08:00

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 */