LLDB mainline
Functions | Variables
DomainSocket.cpp File Reference
#include "lldb/Host/posix/DomainSocket.h"
#include "llvm/Support/Errno.h"
#include "llvm/Support/FileSystem.h"
#include <cstddef>
#include <sys/socket.h>
#include <sys/un.h>

Go to the source code of this file.

Functions

static bool SetSockAddr (llvm::StringRef name, const size_t name_offset, sockaddr_un *saddr_un, socklen_t &saddr_un_len)
 

Variables

static const int kDomain = AF_UNIX
 
static const int kType = SOCK_STREAM
 

Function Documentation

◆ SetSockAddr()

static bool SetSockAddr ( llvm::StringRef  name,
const size_t  name_offset,
sockaddr_un *  saddr_un,
socklen_t &  saddr_un_len 
)
static

Definition at line 32 of file DomainSocket.cpp.

References kDomain.

Referenced by lldb_private::DomainSocket::Connect(), and lldb_private::DomainSocket::Listen().

Variable Documentation

◆ kDomain

const int kDomain = AF_UNIX
static

Definition at line 29 of file DomainSocket.cpp.

Referenced by SetSockAddr().

◆ kType

const int kType = SOCK_STREAM
static

Definition at line 30 of file DomainSocket.cpp.