/system/core/include/cutils/ |
abort_socket.h | 31 * finish closing the socket and free the asocket structure. 41 * Using asocket will triple the number of file descriptors required per 58 struct asocket { struct 63 /* Create an asocket from fd. 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) [all...] |
/system/core/adb/ |
adb.h | 42 typedef struct asocket asocket; typedef in typeref:struct:asocket 69 /* An asocket represents one half of a connection between a local and 70 ** remote entity. A local asocket is bound to a file descriptor. A 71 ** remote asocket is bound to the protocol engine. 73 struct asocket { struct 75 ** asockets that this asocket lives in 77 asocket *next; 78 asocket *prev; 80 /* the unique identifier for this asocket [all...] |
sockets.c | 31 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) 64 asocket *s; 65 asocket *result = NULL; 80 insert_local_socket(asocket* s, asocket* list) 89 void install_local_socket(asocket *s) 99 void remove_socket(asocket *s [all...] |
jdwp_service.c | 429 ** we do implement a custom asocket to receive the data 552 asocket socket; 557 jdwp_socket_close( asocket* s ) 559 asocket* peer = s->peer; 571 jdwp_socket_enqueue( asocket* s, apacket* p ) 573 /* you can't write to this asocket */ 581 jdwp_socket_ready( asocket* s ) 584 asocket* peer = jdwp->socket.peer; 600 asocket* 626 asocket socket [all...] |
transport.c | 387 asocket socket; 414 device_tracker_close( asocket* socket ) 417 asocket* peer = socket->peer; 429 device_tracker_enqueue( asocket* socket, apacket* p ) 443 asocket* peer = tracker->socket.peer; 452 device_tracker_ready( asocket* socket ) 470 asocket*
|
adb.c | 307 asocket *s; 403 asocket *s; 429 asocket *s; 1083 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s) [all...] |
services.c | 536 asocket* host_service_to_socket(const char* name, const char *serial)
|
/system/core/libcutils/ |
abort_socket.c | 26 struct asocket *asocket_init(int fd) { 29 struct asocket *s; 48 s = malloc(sizeof(struct asocket)); 59 int asocket_connect(struct asocket *s, const struct sockaddr *addr, 119 int asocket_accept(struct asocket *s, struct sockaddr *addr, 166 int asocket_read(struct asocket *s, void *buf, size_t count, int timeout) { 211 int asocket_write(struct asocket *s, const void *buf, size_t count, 257 void asocket_abort(struct asocket *s) { 270 void asocket_destroy(struct asocket *s) { 271 struct asocket s_copy = *s [all...] |
/frameworks/base/core/jni/ |
android_bluetooth_BluetoothSocket.cpp | 63 static struct asocket *get_socketData(JNIEnv *env, jobject obj) { 64 struct asocket *s = 65 (struct asocket *) env->GetIntField(obj, field_mSocketData); 75 struct asocket *s = asocket_init(fd); 177 struct asocket *s = get_socketData(env, obj); 274 struct asocket *s = get_socketData(env, obj); 347 struct asocket *s = get_socketData(env, obj); 411 struct asocket *s = get_socketData(env, obj); 436 struct asocket *s = get_socketData(env, obj); 479 struct asocket *s = get_socketData(env, obj) [all...] |