Searched refs:socket_t (Results 1 – 4 of 4) sorted by relevance
/system/bt/osi/include/ |
D | socket.h | 27 typedef struct socket_t socket_t; typedef 30 typedef void (*socket_cb)(socket_t *socket, void *context); 35 socket_t *socket_new(void); 41 socket_t *socket_new_from_fd(int fd); 45 void socket_free(socket_t *socket); 50 bool socket_listen(const socket_t *socket, port_t port); 55 socket_t *socket_accept(const socket_t *socket); 67 ssize_t socket_read(const socket_t *socket, void *buf, size_t count); 79 ssize_t socket_write(const socket_t *socket, const void *buf, size_t count); 85 ssize_t socket_write_and_transfer_fd(const socket_t *socket, const void *buf, size_t count, int fd); [all …]
|
/system/bt/osi/src/ |
D | socket.c | 40 struct socket_t { struct 51 socket_t *socket_new(void) { in socket_new() argument 52 socket_t *ret = (socket_t *)osi_calloc(sizeof(socket_t)); in socket_new() 75 socket_t *socket_new_from_fd(int fd) { in socket_new_from_fd() 78 socket_t *ret = (socket_t *)osi_calloc(sizeof(socket_t)); in socket_new_from_fd() 84 void socket_free(socket_t *socket) { in socket_free() 93 bool socket_listen(const socket_t *socket, port_t port) { in socket_listen() 113 socket_t *socket_accept(const socket_t *socket) { in socket_accept() 123 socket_t *ret = (socket_t *)osi_calloc(sizeof(socket_t)); in socket_accept() 129 ssize_t socket_read(const socket_t *socket, void *buf, size_t count) { in socket_read() [all …]
|
/system/bt/hci/src/ |
D | hci_inject.c | 45 socket_t *socket; 55 static socket_t *listen_socket; 60 static void accept_ready(socket_t *socket, void *context); 61 static void read_ready(socket_t *socket, void *context); 127 static void accept_ready(socket_t *socket, UNUSED_ATTR void *context) { in accept_ready() 148 static void read_ready(UNUSED_ATTR socket_t *socket, void *context) { in read_ready()
|
/system/bt/btif/src/ |
D | btif_sock_sco.c | 60 socket_t *socket; 83 static void socket_read_ready_cb(socket_t *socket, void *context); 163 socket_t *socket = socket_new_from_fd(pair[1]); in sco_socket_establish_locked() 311 static void socket_read_ready_cb(UNUSED_ATTR socket_t *socket, void *context) { in socket_read_ready_cb()
|