ev_tcp.h
static int ev_tcp_handle_init(ev_tcp_handle *handle, int fd) {
    handle->c = ev_connection_new(fd);
    if (!handle->c)
        return EV_TCP_OUT_OF_MEMORY;
    ev_buf_init(&handle->buffer, EV_TCP_BUFSIZE);
    handle->to_read = handle->to_write = 0;
    return EV_TCP_SUCCESS;
}
/*
 * init a fresh new tcp_handle which can be used as a server or a client
 */
init a fresh new tcp_handle which can be used as a server or a client
init a fresh new tcp_handle which can be used as a server or a client
static int ev_tcp_handle_init(ev_tcp_handle *handle, int fd) {
    handle->c = ev_connection_new(fd);
    if (!handle->c)
        return EV_TCP_OUT_OF_MEMORY;
    ev_buf_init(&handle->buffer, EV_TCP_BUFSIZE);
    handle->to_read = handle->to_write = 0;
    return EV_TCP_SUCCESS;
}
static int ev_tcp_handle_init ( ev_tcp_handle * handle , int fd ) { handle -> c = ev_connection_new ( fd ) ; if ( ! handle -> c ) return EV_TCP_OUT_OF_MEMORY ; ev_buf_init ( & handle -> buffer , EV_TCP_BUFSIZE ) ; handle -> to_read = handle -> to_write = 0 ; return EV_TCP_SUCCESS ; }
init a fresh new tcp_handle which can be used as a server or a client
init a fresh new tcp_handle which can be used as a server or a client