#include <sys/types.h>
#include <string>
#include <string_view>
#include "adb_unique_fd.h"
Go to the source code of this file.
|
bool | SendOkay (borrowed_fd fd) |
|
bool | SendFail (borrowed_fd fd, std::string_view reason) |
|
bool | SendProtocolString (borrowed_fd fd, std::string_view s) |
|
bool | ReadProtocolString (borrowed_fd fd, std::string *s, std::string *error) |
|
bool | ReadFdExactly (borrowed_fd fd, void *buf, size_t len) |
|
bool | ReadOrderlyShutdown (borrowed_fd fd) |
|
bool | WriteFdExactly (borrowed_fd fd, const void *buf, size_t len) |
|
bool | WriteFdExactly (borrowed_fd fd, const char *s) |
|
bool | WriteFdExactly (borrowed_fd fd, const std::string &s) |
|
bool | WriteFdFmt (borrowed_fd fd, const char *fmt,...) __attribute__((__format__(__printf__ |
|
◆ ReadFdExactly()
bool ReadFdExactly |
( |
borrowed_fd |
fd, |
|
|
void * |
buf, |
|
|
size_t |
len |
|
) |
| |
◆ ReadOrderlyShutdown()
◆ ReadProtocolString()
bool ReadProtocolString |
( |
borrowed_fd |
fd, |
|
|
std::string * |
s, |
|
|
std::string * |
error |
|
) |
| |
◆ SendFail()
bool SendFail |
( |
borrowed_fd |
fd, |
|
|
std::string_view |
reason |
|
) |
| |
◆ SendOkay()
◆ SendProtocolString()
bool SendProtocolString |
( |
borrowed_fd |
fd, |
|
|
std::string_view |
s |
|
) |
| |
◆ WriteFdExactly() [1/3]
◆ WriteFdExactly() [2/3]
bool WriteFdExactly |
( |
borrowed_fd |
fd, |
|
|
const std::string & |
s |
|
) |
| |
◆ WriteFdExactly() [3/3]
bool WriteFdExactly |
( |
borrowed_fd |
fd, |
|
|
const void * |
buf, |
|
|
size_t |
len |
|
) |
| |
◆ WriteFdFmt()
bool WriteFdFmt |
( |
borrowed_fd |
fd, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |