Android-cuttlefish cvd tool
|
#include "adb_io.h"
#include <unistd.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <thread>
#include <android-base/stringprintf.h>
#include "adb.h"
#include "adb_trace.h"
#include "adb_utils.h"
#include "sysdeps.h"
Macros | |
#define | TRACE_TAG RWX |
Functions | |
bool | SendProtocolString (borrowed_fd fd, std::string_view s) |
bool | ReadProtocolString (borrowed_fd fd, std::string *s, std::string *error) |
bool | SendOkay (borrowed_fd fd) |
bool | SendFail (borrowed_fd fd, std::string_view reason) |
bool | ReadFdExactly (borrowed_fd fd, void *buf, size_t len) |
bool | WriteFdExactly (borrowed_fd fd, const void *buf, size_t len) |
bool | WriteFdExactly (borrowed_fd fd, const char *str) |
bool | WriteFdExactly (borrowed_fd fd, const std::string &str) |
bool | WriteFdFmt (borrowed_fd fd, const char *fmt,...) |
bool | ReadOrderlyShutdown (borrowed_fd fd) |
#define TRACE_TAG RWX |
bool ReadFdExactly | ( | borrowed_fd | fd, |
void * | buf, | ||
size_t | len | ||
) |
bool ReadOrderlyShutdown | ( | borrowed_fd | fd | ) |
bool ReadProtocolString | ( | borrowed_fd | fd, |
std::string * | s, | ||
std::string * | error | ||
) |
bool SendFail | ( | borrowed_fd | fd, |
std::string_view | reason | ||
) |
bool SendOkay | ( | borrowed_fd | fd | ) |
bool SendProtocolString | ( | borrowed_fd | fd, |
std::string_view | s | ||
) |
bool WriteFdExactly | ( | borrowed_fd | fd, |
const char * | str | ||
) |
bool WriteFdExactly | ( | borrowed_fd | fd, |
const std::string & | str | ||
) |
bool WriteFdExactly | ( | borrowed_fd | fd, |
const void * | buf, | ||
size_t | len | ||
) |
bool WriteFdFmt | ( | borrowed_fd | fd, |
const char * | fmt, | ||
... | |||
) |