Android-cuttlefish cvd tool
Macros | Functions
adb_io.cpp File Reference
#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"
Include dependency graph for adb_io.cpp:

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)
 

Macro Definition Documentation

◆ TRACE_TAG

#define TRACE_TAG   RWX

Function Documentation

◆ ReadFdExactly()

bool ReadFdExactly ( borrowed_fd  fd,
void *  buf,
size_t  len 
)

◆ ReadOrderlyShutdown()

bool ReadOrderlyShutdown ( borrowed_fd  fd)

◆ ReadProtocolString()

bool ReadProtocolString ( borrowed_fd  fd,
std::string *  s,
std::string *  error 
)

◆ SendFail()

bool SendFail ( borrowed_fd  fd,
std::string_view  reason 
)

◆ SendOkay()

bool SendOkay ( borrowed_fd  fd)

◆ SendProtocolString()

bool SendProtocolString ( borrowed_fd  fd,
std::string_view  s 
)

◆ WriteFdExactly() [1/3]

bool WriteFdExactly ( borrowed_fd  fd,
const char *  str 
)

◆ WriteFdExactly() [2/3]

bool WriteFdExactly ( borrowed_fd  fd,
const std::string &  str 
)

◆ WriteFdExactly() [3/3]

bool WriteFdExactly ( borrowed_fd  fd,
const void *  buf,
size_t  len 
)

◆ WriteFdFmt()

bool WriteFdFmt ( borrowed_fd  fd,
const char *  fmt,
  ... 
)