Home
last modified time | relevance | path

Searched refs:socket_t (Results 1 – 4 of 4) sorted by relevance

/system/bt/osi/include/
Dsocket.h27 typedef struct socket_t socket_t; typedef
30 typedef void (*socket_cb)(socket_t* socket, void* context);
35 socket_t* socket_new(void);
42 socket_t* socket_new_from_fd(int fd);
46 void socket_free(socket_t* socket);
51 bool socket_listen(const socket_t* socket, port_t port);
56 socket_t* socket_accept(const socket_t* socket);
68 ssize_t socket_read(const socket_t* socket, void* buf, size_t count);
80 ssize_t socket_write(const socket_t* socket, const void* buf, size_t count);
87 ssize_t socket_write_and_transfer_fd(const socket_t* socket, const void* buf,
[all …]
/system/bt/osi/src/
Dsocket.cc40 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()
92 bool socket_listen(const socket_t* socket, port_t port) { in socket_listen()
114 socket_t* socket_accept(const socket_t* socket) { in socket_accept()
124 socket_t* ret = (socket_t*)osi_calloc(sizeof(socket_t)); in socket_accept()
130 ssize_t socket_read(const socket_t* socket, void* buf, size_t count) { in socket_read()
[all …]
/system/bt/hci/src/
Dhci_inject.cc46 socket_t* socket;
54 static void accept_ready(socket_t* socket, void* context);
55 static void read_ready(socket_t* socket, void* context);
64 static socket_t* listen_socket;
130 static void accept_ready(socket_t* socket, UNUSED_ATTR void* context) { in accept_ready()
150 static void read_ready(UNUSED_ATTR socket_t* socket, void* context) { in read_ready()
/system/bt/btif/src/
Dbtif_sock_sco.cc63 socket_t* socket;
77 static void socket_read_ready_cb(socket_t* socket, void* context);
137 socket_t* socket = NULL; in sco_socket_establish_locked()
312 static void socket_read_ready_cb(UNUSED_ATTR socket_t* socket, void* context) { in socket_read_ready_cb()