Real Name

This commit is contained in:
Kilian committed 2022-01-01 23:50:23 +01:00
1 parent 94a31b7608
commit 0adf122d1d
553 files changed
+155034

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
/*
* 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