diff options
author | Mathias Stearn <redbeard0531@gmail.com> | 2018-04-28 18:06:11 -0400 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-05-09 17:42:16 +0200 |
commit | 9048bcc54b5fe8d0ae8c24b9cf7454cfa897ce5a (patch) | |
tree | c9dde28d0d516ad5d0282766cc0ec44461abcef7 /lib/pure | |
parent | af591544c59e9b05e539f4583f1143776bb8a9e4 (diff) | |
download | Nim-9048bcc54b5fe8d0ae8c24b9cf7454cfa897ce5a.tar.gz |
Add connectUnix and bindUnix to net docs
fixes #7715
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/net.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/net.nim b/lib/pure/net.nim index 06bf12665..fc04ef1af 100644 --- a/lib/pure/net.nim +++ b/lib/pure/net.nim @@ -960,7 +960,7 @@ when defined(posix) and not defined(nimdoc): raise newException(ValueError, "socket path too long") copyMem(addr result.sun_path, path.cstring, path.len + 1) -when defined(posix): +when defined(posix) or defined(nimdoc): proc connectUnix*(socket: Socket, path: string) = ## Connects to Unix socket on `path`. ## This only works on Unix-style systems: Mac OS X, BSD and Linux |