|
Coda Distributed File System
|
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <uv.h>#include <gnutls/gnutls.h>#include "codatunnel.private.h"
Macros | |
| #define | DESTARRAY_SIZE 100 /* should be plenty for early debugging */ |
| #define | MAXTHREAD 20 |
Functions | |
| void | initdestarray (uv_loop_t *mainloop) |
| dest_t * | getdest (const struct sockaddr_storage *x, socklen_t xlen) |
| dest_t * | createdest (const struct sockaddr_storage *x, socklen_t xlen, const char *peername) |
| void | free_dest (dest_t *d) |
| void | enq_element (dest_t *d, const uv_buf_t *thisbuf, int nb) |
| int | poll_uvbytes (gnutls_transport_ptr_t gtp, unsigned int ms) |
| ssize_t | eat_uvbytes (gnutls_transport_ptr_t gtp, void *tlsbuf, size_t nread) |
| int | mapthread (uv_thread_t t) |
| const char * | tcpstatename (enum deststate mystate) |
Variables | |
| dest_t | destarray [DESTARRAY_SIZE] |
| #define MAXTHREAD 20 |
| dest_t * createdest | ( | const struct sockaddr_storage * | x, |
| socklen_t | xlen, | ||
| const char * | peername | ||
| ) |
| ssize_t eat_uvbytes | ( | gnutls_transport_ptr_t | gtp, |
| void * | tlsbuf, | ||
| size_t | nread | ||
| ) |
| void enq_element | ( | dest_t * | d, |
| const uv_buf_t * | thisbuf, | ||
| int | nb | ||
| ) |
| void free_dest | ( | dest_t * | d | ) |
| dest_t * getdest | ( | const struct sockaddr_storage * | x, |
| socklen_t | xlen | ||
| ) |
| void initdestarray | ( | uv_loop_t * | mainloop | ) |
| int mapthread | ( | uv_thread_t | t | ) |
| int poll_uvbytes | ( | gnutls_transport_ptr_t | gtp, |
| unsigned int | ms | ||
| ) |
| const char * tcpstatename | ( | enum deststate | mystate | ) |
| dest_t destarray[DESTARRAY_SIZE] |