Android-cuttlefish cvd tool
|
#include <client.h>
Public Types | |
enum | ClientType { RIL , REMOTE } |
Public Member Functions | |
Client ()=default | |
~Client ()=default | |
Client (SharedFD fd) | |
Client (SharedFD read, SharedFD write) | |
Client (SharedFD fd, ClientType client_type) | |
Client (SharedFD read, SharedFD write, ClientType client_type) | |
Client (const Client &client)=delete | |
Client (Client &&client)=delete | |
Client & | operator= (Client &&other)=delete |
bool | operator== (const Client &other) const |
void | SendCommandResponse (std::string response) const |
void | SendCommandResponse (const std::vector< std::string > &responses) const |
ClientId | Id () const |
ClientType | Type () const |
Private Attributes | |
ClientId | id_ |
ClientType | type = RIL |
SharedFD | client_read_fd_ |
SharedFD | client_write_fd_ |
std::string | incomplete_command |
std::mutex | write_mutex |
bool | first_read_command_ |
bool | is_valid = true |
Friends | |
class | ChannelMonitor |
class | ::ModemServiceTest |
Client object managed by ChannelMonitor, contains two types, the RIL client and the remote client of other cuttlefish instance. Due to std::mutex does not implement its copy and operate= constructors, it can't be stored in standard contains (vector, map), so use the point instead.
|
default |
|
default |
cuttlefish::Client::Client | ( | SharedFD | fd | ) |
cuttlefish::Client::Client | ( | SharedFD | fd, |
ClientType | client_type | ||
) |
cuttlefish::Client::Client | ( | SharedFD | read, |
SharedFD | write, | ||
ClientType | client_type | ||
) |
|
delete |
|
delete |
|
inline |
bool cuttlefish::Client::operator== | ( | const Client & | other | ) | const |
void cuttlefish::Client::SendCommandResponse | ( | const std::vector< std::string > & | responses | ) | const |
void cuttlefish::Client::SendCommandResponse | ( | std::string | response | ) | const |
|
inline |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |