Android-cuttlefish cvd tool
|
#include "sysdeps.h"
#include <ctype.h>
#include <errno.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <algorithm>
#include <chrono>
#include <mutex>
#include <string>
#include <vector>
#include <android-base/strings.h>
#include <android-base/properties.h>
#include <log/log_properties.h>
#include "adb.h"
#include "adb_io.h"
#include "adb_utils.h"
#include "transport.h"
#include "types.h"
Classes | |
struct | ClosingSocket |
Macros | |
#define | TRACE_TAG SOCKETS |
Enumerations | |
enum class | SocketFlushResult { Destroyed , TryAgain , Completed } |
Variables | |
static std::recursive_mutex & | local_socket_list_lock = *new std::recursive_mutex() |
static unsigned | local_socket_next_id = 1 |
static auto & | local_socket_list = *new std::vector<asocket*>() |
static auto & | local_socket_closing_list = *new std::vector<asocket*>() |
#define TRACE_TAG SOCKETS |
|
strong |
void close_all_sockets | ( | atransport * | t | ) |
void connect_to_remote | ( | asocket * | s, |
std::string_view | destination | ||
) |
asocket * create_local_service_socket | ( | std::string_view | name, |
atransport * | transport | ||
) |
asocket * create_remote_socket | ( | unsigned | id, |
atransport * | t | ||
) |
|
static |
asocket * find_local_socket | ( | unsigned | local_id, |
unsigned | peer_id | ||
) |
void install_local_socket | ( | asocket * | s | ) |
void local_socket_ack | ( | asocket * | s, |
std::optional< int32_t > | acked_bytes | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void remove_socket | ( | asocket * | s | ) |
|
static |
|
static |
|
static |
|
static |