LLDB mainline
DomainSocket.cpp File Reference
#include "lldb/Host/posix/DomainSocket.h"
#include "lldb/Utility/LLDBLog.h"
#include "llvm/Support/Errno.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FileSystem.h"
#include <cstddef>
#include <fcntl.h>
#include <memory>
#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()

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

Definition at line 31 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 28 of file DomainSocket.cpp.

◆ kType

const int kType = SOCK_STREAM
static

Definition at line 29 of file DomainSocket.cpp.