LLVM 23.0.0git
raw_socket_stream.cpp File Reference
#include "llvm/Support/raw_socket_stream.h"
#include "llvm/Config/config.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FileSystem.h"
#include <atomic>
#include <fcntl.h>
#include <functional>
#include <poll.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>

Go to the source code of this file.

Functions

static std::error_code getLastSocketErrorCode ()
static Expected< sockaddr_un > setSocketAddr (StringRef SocketPath)
static Expected< int > getSocketFD (StringRef SocketPath)
static std::error_code manageTimeout (const std::chrono::milliseconds &Timeout, const std::function< int()> &getActiveFD, const std::optional< int > &CancelFD=std::nullopt)

Function Documentation

◆ getLastSocketErrorCode()

std::error_code getLastSocketErrorCode ( )
static

◆ getSocketFD()

◆ manageTimeout()

std::error_code manageTimeout ( const std::chrono::milliseconds & Timeout,
const std::function< int()> & getActiveFD,
const std::optional< int > & CancelFD = std::nullopt )
static

◆ setSocketAddr()

Expected< sockaddr_un > setSocketAddr ( StringRef SocketPath)
static