6 #define DEFAULT_PORT 7000
7 #define DEFAULT_BACKLOG 128
24 buf->base = (
char*)
malloc(suggested_size);
25 buf->len = suggested_size;
48 fprintf(stderr,
"Read error %s\n",
uv_err_name(nread));
static mcore_handle handle
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec req
RZ_API void Ht_() free(HtName_(Ht) *ht)
int main(int argc, const char **argv)
void * malloc(size_t size)
static const char struct stat static buf struct stat static buf static vhangup int status
void on_new_connection(uv_stream_t *server, int status)
void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
void echo_write(uv_write_t *req, int status)
void echo_read(uv_stream_t *client, ssize_t nread, const uv_buf_t *buf)
void free_write_req(uv_write_t *req)
void on_close(uv_handle_t *handle)
UV_EXTERN int uv_ip4_addr(const char *ip, int port, struct sockaddr_in *addr)
UV_EXTERN int uv_write(uv_write_t *req, uv_stream_t *handle, const uv_buf_t bufs[], unsigned int nbufs, uv_write_cb cb)
UV_EXTERN uv_buf_t uv_buf_init(char *base, unsigned int len)
UV_EXTERN int uv_read_start(uv_stream_t *, uv_alloc_cb alloc_cb, uv_read_cb read_cb)
UV_EXTERN int uv_listen(uv_stream_t *stream, int backlog, uv_connection_cb cb)
UV_EXTERN int uv_run(uv_loop_t *, uv_run_mode mode)
UV_EXTERN const char * uv_err_name(int err)
UV_EXTERN int uv_tcp_bind(uv_tcp_t *handle, const struct sockaddr *addr, unsigned int flags)
UV_EXTERN void uv_close(uv_handle_t *handle, uv_close_cb close_cb)
UV_EXTERN const char * uv_strerror(int err)
UV_EXTERN int uv_accept(uv_stream_t *server, uv_stream_t *client)
UV_EXTERN int uv_tcp_init(uv_loop_t *, uv_tcp_t *handle)
UV_EXTERN uv_loop_t * uv_default_loop(void)