diff options
author | Andrius Bentkus <andrius.bentkus@gmail.com> | 2015-01-26 16:23:06 +0100 |
---|---|---|
committer | Saúl Ibarra Corretgé <saghul@gmail.com> | 2015-01-28 21:40:32 +0100 |
commit | 39a0936fecf59b9898904b80e8a9d60d56f3e1d4 (patch) | |
tree | be4b566a930e910bb372901c0da5d47a08a1f88e /docs/src | |
parent | ba09b39b1cab0dc20afe2f917f6e608ea83f8b82 (diff) | |
download | libuv-39a0936fecf59b9898904b80e8a9d60d56f3e1d4.tar.gz libuv-39a0936fecf59b9898904b80e8a9d60d56f3e1d4.zip |
win, unix: add pipe_peername implementation
PR-URL: https://github.com/libuv/libuv/pull/166
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/pipe.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/src/pipe.rst b/docs/src/pipe.rst index 01aea4ac..8f8402c2 100644 --- a/docs/src/pipe.rst +++ b/docs/src/pipe.rst @@ -68,6 +68,18 @@ API .. versionchanged:: 1.3.0 the returned length no longer includes the terminating null byte, and the buffer is not null terminated. +.. c:function:: int uv_pipe_getpeername(const uv_pipe_t* handle, char* buffer, size_t* size) + + Get the name of the Unix domain socket or the named pipe to which the handle + is connected. + + A preallocated buffer must be provided. The size parameter holds the length + of the buffer and it's set to the number of bytes written to the buffer on + output. If the buffer is not big enough ``UV_ENOBUFS`` will be returned and + len will contain the required size. + + .. versionadded:: 1.3.0 + .. c:function:: void uv_pipe_pending_instances(uv_pipe_t* handle, int count) Set the number of pending pipe instance handles when the pipe server is |