Android-cuttlefish cvd tool
|
#include "sysdeps/network.h"
#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <string>
#include <android-base/logging.h>
#include <android-base/stringprintf.h>
#include <cutils/sockets.h>
#include "adb_unique_fd.h"
Functions | |
static void | set_error (std::string *error) |
static sockaddr * | loopback_addr4 (sockaddr_storage *addr, socklen_t *addrlen, int port) |
static sockaddr * | loopback_addr6 (sockaddr_storage *addr, socklen_t *addrlen, int port) |
static int | _network_loopback_client (bool ipv6, int port, int type, std::string *error) |
int | network_loopback_client (int port, int type, std::string *error) |
static int | _network_loopback_server (bool ipv6, int port, int type, std::string *error) |
int | network_loopback_server (int port, int type, std::string *error, bool prefer_ipv4) |
int | network_connect (const std::string &host, int port, int type, int timeout, std::string *error) |
|
static |
|
static |
|
static |
|
static |
int network_connect | ( | const std::string & | host, |
int | port, | ||
int | type, | ||
int | timeout, | ||
std::string * | error | ||
) |
int network_loopback_client | ( | int | port, |
int | type, | ||
std::string * | error | ||
) |
int network_loopback_server | ( | int | port, |
int | type, | ||
std::string * | error, | ||
bool | prefer_ipv4 | ||
) |
|
static |