Home | History | Annotate | Download | only in adb

Lines Matching defs:asocket

32 /* An asocket represents one half of a connection between a local and
33 * remote entity. A local asocket is bound to a file descriptor. A
34 * remote asocket is bound to the protocol engine.
36 struct asocket {
37 /* the unique identifier for this asocket
55 // the asocket we are connected to
56 asocket* peer = nullptr;
76 int (*enqueue)(asocket* s, std::string data) = nullptr;
81 void (*ready)(asocket* s) = nullptr;
87 void (*shutdown)(asocket* s) = nullptr;
93 void (*close)(asocket* s) = nullptr;
101 asocket *find_local_socket(unsigned local_id, unsigned remote_id);
102 void install_local_socket(asocket *s);
103 void remove_socket(asocket *s);
106 asocket *create_local_socket(int fd);
107 asocket* create_local_service_socket(const char* destination, atransport* transport);
109 asocket *create_remote_socket(unsigned id, atransport *t);
110 void connect_to_remote(asocket *s, const char *destination);
111 void connect_to_smartsocket(asocket *s);