diff options
author | James McCoy <jamessan@jamessan.com> | 2017-05-28 13:26:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-28 13:26:06 +0000 |
commit | 9cc185dc6d9d665fe5ba3702a0a8af09151fe5c4 (patch) | |
tree | 0d0ac40790e2fc996ff1f43d5b6c0d327b10b48d /runtime | |
parent | eb71bbb1da073e4a97212f852a51893698fe95f9 (diff) | |
parent | 62d020aba1b4940980903a54839ad1f26f2d1527 (diff) | |
download | rneovim-9cc185dc6d9d665fe5ba3702a0a8af09151fe5c4.tar.gz rneovim-9cc185dc6d9d665fe5ba3702a0a8af09151fe5c4.tar.bz2 rneovim-9cc185dc6d9d665fe5ba3702a0a8af09151fe5c4.zip |
Merge pull request #6680 from mhinz/listen/localhost
Use uv_getaddrinfo() for servers
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index f076458fed..4e71b89067 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -6460,11 +6460,20 @@ serverlist() *serverlist()* nvim --cmd "echo serverlist()" --cmd "q" < serverstart([{address}]) *serverstart()* - Opens a named pipe or TCP socket at {address} for clients to - connect to and returns {address}. If no address is given, it - is equivalent to: > + Opens a TCP socket (IPv4/IPv6), Unix domain socket (Unix), + or named pipe (Windows) at {address} for clients to connect + to and returns {address}. + + If {address} contains `:`, a TCP socket is used. Everything in + front of the last occurrence of `:` is the IP or hostname, + everything after it the port. If the port is empty or `0`, + a random port will be assigned. + + If no address is given, it is equivalent to: > :call serverstart(tempname()) + < |$NVIM_LISTEN_ADDRESS| is set to {address} if not already set. + *--servername* The Vim command-line option `--servername` can be imitated: > nvim --cmd "let g:server_addr = serverstart('foo')" |