You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*
* IXSocketConnect.h * Author: Benjamin Sergeant * Copyright (c) 2018 Machine Zone, Inc. All rights reserved. */
#pragma once
#include "IXCancellationRequest.h"
#include <string>
struct addrinfo;
namespace ix { class SocketConnect { public: static int connect(const std::string& hostname, int port, std::string& errMsg, const CancellationRequest& isCancellationRequested);
static void configure(int sockfd);
private: static int connectToAddress(const struct addrinfo* address, std::string& errMsg, const CancellationRequest& isCancellationRequested); }; } // namespace ix
|