Created
June 29, 2011 18:09
-
-
Save igorzi/1054465 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct uv_stream_s uv_stream_t; | |
typedef struct uv_pipe_s uv_pipe_t; | |
/* Creates a unique pipe name, which can be used with uv_pipe_create */ | |
char* uv_pipe_unique_name(); | |
int uv_pipe_init(uv_pipe_t* handle); | |
/* Called from pipe server to create a named pipe; this is equivalent to uv_bind for tcp | |
* TODO: add options | |
*/ | |
int uv_pipe_create(char* name); | |
/* Split uv_connect into uv_tcp_connect and uv_pipe_connect */ | |
int uv_tcp_connect(uv_req_t* req, struct sockaddr_in); | |
int uv_pipe_connect(uv_req_t* req, char* name); | |
/* Split uv_listen into uv_tcp_listen and uv_pipe_listen */ | |
int uv_tcp_listen(uv_tcp_t* handle, int backlog, uv_connection_cb cb); | |
int uv_pipe_listen(uv_pipe_t* handle, int instanceCount, uv_connection_cb cb); | |
/* Modified to take uv_handle_t instead of uv_tcp_t to handle both tcp and pipes */ | |
int uv_accept(uv_handle_t* server, uv_stream_t* client); | |
/* Modified to take uv_stream_t */ | |
int uv_read_start(uv_stream_t*, uv_alloc_cb alloc_cb, uv_read_cb read_cb); | |
/* Modified to take uv_stream_t */ | |
int uv_read_stop(uv_stream_t*); | |
/* No API changes for uv_write */ | |
int uv_write(uv_req_t* req, uv_buf_t bufs[], int bufcnt); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment