diff --git a/include/uv.h b/include/uv.h index 5e0c346e..f75c4be2 100644 --- a/include/uv.h +++ b/include/uv.h @@ -302,7 +302,7 @@ struct uv_pipe_s { int uv_pipe_init(uv_pipe_t* handle); -int uv_pipe_create(uv_pipe_t* handle, char* name); +int uv_pipe_bind(uv_pipe_t* handle, char* name); int uv_pipe_listen(uv_pipe_t* handle, int instanceCount, uv_connection_cb cb); diff --git a/src/uv-unix.c b/src/uv-unix.c index 38dd4923..140f0935 100644 --- a/src/uv-unix.c +++ b/src/uv-unix.c @@ -1600,7 +1600,7 @@ int uv_pipe_init(uv_pipe_t* handle) { } -int uv_pipe_create(uv_pipe_t* handle, char* name) { +int uv_pipe_bind(uv_pipe_t* handle, char* name) { assert(0 && "implement me"); } diff --git a/src/uv-win.c b/src/uv-win.c index 7edd1e87..34d9cf27 100644 --- a/src/uv-win.c +++ b/src/uv-win.c @@ -2919,7 +2919,7 @@ int uv_pipe_init(uv_pipe_t* handle) { /* Creates a pipe server. */ /* TODO: make this work with UTF8 name */ -int uv_pipe_create(uv_pipe_t* handle, char* name) { +int uv_pipe_bind(uv_pipe_t* handle, char* name) { if (!name) { return -1; } diff --git a/test/benchmark-pump.c b/test/benchmark-pump.c index 591dbb0b..2d48c8ab 100644 --- a/test/benchmark-pump.c +++ b/test/benchmark-pump.c @@ -401,7 +401,7 @@ HELPER_IMPL(pipe_pump_server) { server = (uv_handle_t*)&pipeServer; r = uv_pipe_init(&pipeServer); ASSERT(r == 0); - r = uv_pipe_create(&pipeServer, TEST_PIPENAME); + r = uv_pipe_bind(&pipeServer, TEST_PIPENAME); ASSERT(r == 0); r = uv_pipe_listen(&pipeServer, MAX_WRITE_HANDLES, connection_cb); ASSERT(r == 0); diff --git a/test/echo-server.c b/test/echo-server.c index b8c3500b..1141670c 100644 --- a/test/echo-server.c +++ b/test/echo-server.c @@ -240,7 +240,7 @@ static int pipe_echo_start(char* pipeName) { return 1; } - r = uv_pipe_create(&pipeServer, pipeName); + r = uv_pipe_bind(&pipeServer, pipeName); if (r) { /* TODO: Error codes */ fprintf(stderr, "create error\n");