Home
last modified time | relevance | path

Searched refs:asocket (Results 1 – 8 of 8) sorted by relevance

/system/core/include/cutils/
Dabort_socket.h58 struct asocket { struct
67 struct asocket *asocket_init(int fd);
77 int asocket_connect(struct asocket *s, const struct sockaddr *addr,
80 int asocket_accept(struct asocket *s, struct sockaddr *addr,
83 int asocket_read(struct asocket *s, void *buf, size_t count, int timeout);
85 int asocket_write(struct asocket *s, const void *buf, size_t count,
93 void asocket_abort(struct asocket *s);
98 void asocket_destroy(struct asocket *s);
/system/core/adb/
Dadb.h43 typedef struct asocket asocket; typedef
74 struct asocket { struct
78 asocket *next; argument
79 asocket *prev; argument
98 asocket *peer; argument
118 int (*enqueue)(asocket *s, apacket *pkt); argument
123 void (*ready)(asocket *s); argument
129 void (*close)(asocket *s); argument
239 asocket *find_local_socket(unsigned id);
240 void install_local_socket(asocket *s);
[all …]
Dsockets.c31 static void local_socket_close_locked(asocket *s);
48 static asocket local_socket_list = {
57 static asocket local_socket_closing_list = {
62 asocket *find_local_socket(unsigned id) in find_local_socket()
64 asocket *s; in find_local_socket()
65 asocket *result = NULL; in find_local_socket()
80 insert_local_socket(asocket* s, asocket* list) in insert_local_socket()
89 void install_local_socket(asocket *s) in install_local_socket()
99 void remove_socket(asocket *s) in remove_socket()
114 asocket *s; in close_all_sockets()
[all …]
Djdwp_service.c552 asocket socket;
557 jdwp_socket_close( asocket* s ) in jdwp_socket_close()
559 asocket* peer = s->peer; in jdwp_socket_close()
571 jdwp_socket_enqueue( asocket* s, apacket* p ) in jdwp_socket_enqueue()
581 jdwp_socket_ready( asocket* s ) in jdwp_socket_ready()
584 asocket* peer = jdwp->socket.peer; in jdwp_socket_ready()
600 asocket*
626 asocket socket;
646 asocket* peer = t->socket.peer; in jdwp_process_list_updated()
654 jdwp_tracker_close( asocket* s ) in jdwp_tracker_close()
[all …]
Dtransport.c387 asocket socket;
414 device_tracker_close( asocket* socket ) in device_tracker_close()
417 asocket* peer = socket->peer; in device_tracker_close()
429 device_tracker_enqueue( asocket* socket, apacket* p ) in device_tracker_enqueue()
443 asocket* peer = tracker->socket.peer; in device_tracker_send()
452 device_tracker_ready( asocket* socket ) in device_tracker_ready()
470 asocket*
Dadb.c494 asocket *s; in handle_packet()
619 asocket *s; in ss_listener_event_func()
645 asocket *s; in listener_event_func()
1335 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s) in handle_host_request()
Dservices.c525 asocket* host_service_to_socket(const char* name, const char *serial) in host_service_to_socket()
/system/core/libcutils/
Dabort_socket.c26 struct asocket *asocket_init(int fd) { in asocket_init()
29 struct asocket *s; in asocket_init()
48 s = malloc(sizeof(struct asocket)); in asocket_init()
59 int asocket_connect(struct asocket *s, const struct sockaddr *addr, in asocket_connect()
119 int asocket_accept(struct asocket *s, struct sockaddr *addr, in asocket_accept()
166 int asocket_read(struct asocket *s, void *buf, size_t count, int timeout) { in asocket_read()
211 int asocket_write(struct asocket *s, const void *buf, size_t count, in asocket_write()
257 void asocket_abort(struct asocket *s) { in asocket_abort()
270 void asocket_destroy(struct asocket *s) { in asocket_destroy()
271 struct asocket s_copy = *s; in asocket_destroy()