You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 4, 2018. It is now read-only.
I would like to change the API of uv_listen and uv_read to be a similar interface:
/* uv_accept() is used in conjunction with uv_listen() to accept incoming * TCP connections. After receiving a uv_connection_cb call uv_accept() to * accept the connection. Before calling uv_accept use uv_tcp_init() must be * called on the client. Non-zero return value indicates an error. * * When the uv_connection_cb is called it is guaranteed that uv_accept() * will complete successfully the first time. If you attempt to use it more * than once, it may fail. It is suggested to only call uv_accept once per * uv_connection_cb call. */intuv_listen_start(uv_tcp_t*handle, intbacklog, uv_connection_cbcb);
intuv_listen_stop(uv_tcp_t*handle);
intuv_accept(uv_tcp_t*server, uv_tcp_t*client);
/* Read data from an incoming stream. uv_read_start() allows the TCP handle * to be notified of readablity via the read_cb. When the handle is readable * uv_read() can be used to read the data * * Each time the uv_read_cb is called the user should call uv_read with a * pointer to a uv_buf_t. For best results the user should provide a * uv_buf_t with 64kb of space. The supplied buffer will be filled with TCP * data. * * uv_read() will return zero when EOF is reached; -1 when an error occured. */intuv_read_start(uv_tcp_t*, uv_read_cbread_cb);
intuv_read_stop(uv_tcp_t*);
ssize_tuv_read(uv_tcp_t*, uv_buf_t*buf);
The text was updated successfully, but these errors were encountered:
I would like to change the API of uv_listen and uv_read to be a similar interface:
The text was updated successfully, but these errors were encountered: