9#ifndef LLDB_HOST_SOCKETADDRESS_H
10#define LLDB_HOST_SOCKETADDRESS_H
18typedef ADDRESS_FAMILY sa_family_t;
21#include <netinet/in.h>
22#include <sys/socket.h>
25#if defined(__FreeBSD__)
37 static std::vector<SocketAddress>
38 GetAddressInfo(
const char *hostname,
const char *servname,
int ai_family,
39 int ai_socktype,
int ai_protocol,
int ai_flags = 0);
99 int ai_family = PF_UNSPEC,
int ai_socktype = 0,
100 int ai_protocol = 0,
int ai_flags = 0);
const struct sockaddr_in & sockaddr_in() const
static std::vector< SocketAddress > GetAddressInfo(const char *hostname, const char *servname, int ai_family, int ai_socktype, int ai_protocol, int ai_flags=0)
void SetFamily(sa_family_t family)
bool SetToLocalhost(sa_family_t family, uint16_t port)
struct sockaddr_in6 & sockaddr_in6()
const SocketAddress & operator=(const struct addrinfo *addr_info)
const struct sockaddr_storage & sockaddr_storage() const
bool operator!=(const SocketAddress &rhs) const
sa_family_t GetFamily() const
bool SetToAnyAddress(sa_family_t family, uint16_t port)
socklen_t GetLength() const
struct sockaddr_in & sockaddr_in()
bool getaddrinfo(const char *host, const char *service, int ai_family=PF_UNSPEC, int ai_socktype=0, int ai_protocol=0, int ai_flags=0)
std::string GetIPAddress() const
static socklen_t GetMaxLength()
union lldb_private::SocketAddress::sockaddr_tag sockaddr_t
struct sockaddr_storage & sockaddr_storage()
struct sockaddr & sockaddr()
bool SetPort(uint16_t port)
const struct sockaddr_in6 & sockaddr_in6() const
const struct sockaddr & sockaddr() const
bool operator==(const SocketAddress &rhs) const
A class that represents a running process on the host machine.
struct sockaddr_in sa_ipv4
struct sockaddr_in6 sa_ipv6
struct sockaddr_storage sa_storage