Home | History | Annotate | Download | only in src

Lines Matching defs:socket_t

40 struct socket_t {
51 socket_t *socket_new(void) {
52 socket_t *ret = (socket_t *)osi_calloc(sizeof(socket_t));
75 socket_t *socket_new_from_fd(int fd) {
78 socket_t *ret = (socket_t *)osi_calloc(sizeof(socket_t));
84 void socket_free(socket_t *socket) {
93 bool socket_listen(const socket_t *socket, port_t port) {
113 socket_t *socket_accept(const socket_t *socket) {
123 socket_t *ret = (socket_t *)osi_calloc(sizeof(socket_t));
129 ssize_t socket_read(const socket_t *socket, void *buf, size_t count) {
139 ssize_t socket_write(const socket_t *socket, const void *buf, size_t count) {
149 ssize_t socket_write_and_transfer_fd(const socket_t *socket, const void *buf, size_t count, int fd) {
183 ssize_t socket_bytes_available(const socket_t *socket) {
192 void socket_register(socket_t *socket, reactor_t *reactor, void *context, socket_cb read_cb, socket_cb write_cb) {
208 void socket_unregister(socket_t *socket) {
219 socket_t *socket = (void *)context;
226 socket_t *socket = (void *)context;