Lines Matching refs:socket_t
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()
139 ssize_t socket_write(const socket_t *socket, const void *buf, size_t count) { in socket_write()
149 ssize_t socket_write_and_transfer_fd(const socket_t *socket, const void *buf, size_t count, int fd)… in socket_write_and_transfer_fd()
183 ssize_t socket_bytes_available(const socket_t *socket) { in socket_bytes_available()
192 void socket_register(socket_t *socket, reactor_t *reactor, void *context, socket_cb read_cb, socket… in socket_register()
208 void socket_unregister(socket_t *socket) { in socket_unregister()
219 socket_t *socket = (void *)context; in internal_read_ready()
226 socket_t *socket = (void *)context; in internal_write_ready()