LLVM 19.0.0git
Functions
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 <thread>
#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 sockaddr_un setSocketAddr (StringRef SocketPath)
 
static Expected< int > getSocketFD (StringRef SocketPath)
 

Function Documentation

◆ getLastSocketErrorCode()

static std::error_code getLastSocketErrorCode ( )
static

◆ getSocketFD()

static Expected< int > getSocketFD ( StringRef  SocketPath)
static

◆ setSocketAddr()

static sockaddr_un setSocketAddr ( StringRef  SocketPath)
static

Definition at line 64 of file raw_socket_stream.cpp.

References Addr, and llvm::StringRef::str().

Referenced by llvm::ListeningSocket::createUnix(), and getSocketFD().