aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-05-29 20:33:00 +0200
committerGitHub <noreply@github.com>2017-05-29 20:33:00 +0200
commit1b7a9bf4d2028e75a140e3b314901e58684f2b1a (patch)
tree2860c9db4994bc363a8a1ee036dd9dc2ad73b83b /runtime
parent9cc185dc6d9d665fe5ba3702a0a8af09151fe5c4 (diff)
parent5a151555c8dce70bbf235e7f6d5bd1ced5e7c46c (diff)
downloadrneovim-1b7a9bf4d2028e75a140e3b314901e58684f2b1a.tar.gz
rneovim-1b7a9bf4d2028e75a140e3b314901e58684f2b1a.tar.bz2
rneovim-1b7a9bf4d2028e75a140e3b314901e58684f2b1a.zip
Merge pull request #6594 from bfredl/sockopen
connect to socket (RPC only for the moment)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 4e71b89067..b692b28418 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -6863,6 +6863,21 @@ sinh({expr}) *sinh()*
:echo sinh(-0.9)
< -1.026517
+sockconnect({mode}, {address}, {opts}) *sockconnect()*
+ Connect a socket to an address. If {mode} is "pipe" then
+ {address} should be the path of a named pipe. If {mode} is
+ "tcp" then {address} should be of the form "host:port" where
+ the host should be an ip adderess or host name, and port the
+ port number. Currently only rpc sockets are supported, so
+ {opts} must be passed with "rpc" set to |TRUE|.
+
+ {opts} is a dictionary with these keys:
+ rpc : If set, |msgpack-rpc| will be used to communicate
+ over the socket.
+ Returns:
+ - The channel ID on success, which is used by
+ |rpcnotify()| and |rpcrequest()| and |rpcstop()|.
+ - 0 on invalid arguments or connection failure.
sort({list} [, {func} [, {dict}]]) *sort()* *E702*
Sort the items in {list} in-place. Returns {list}.