From 4370cb77e7d7d5aa7d6e855db5e43ce14a59a927 Mon Sep 17 00:00:00 2001 From: llmII Date: Mon, 6 Sep 2021 10:54:11 -0500 Subject: [PATCH] Update documentation. Documenting the new bindhost parameter to net/connect. --- src/core/net.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/net.c b/src/core/net.c index 22be0ad9..62324a2d 100644 --- a/src/core/net.c +++ b/src/core/net.c @@ -376,10 +376,12 @@ JANET_CORE_FN(cfun_net_sockaddr, } JANET_CORE_FN(cfun_net_connect, - "(net/connect host port &opt type)", + "(net/connect host port &opt type bindhost)", "Open a connection to communicate with a server. Returns a duplex stream " "that can be used to communicate with the server. Type is an optional keyword " - "to specify a connection type, either :stream or :datagram. The default is :stream. ") { + "to specify a connection type, either :stream or :datagram. The default is :stream. " + "Bindhost is an optional string to select from what address to make the outgoing " + "connection, with the default being the same as using the OS's preferred address. ") { janet_arity(argc, 2, 4); int socktype = janet_get_sockettype(argv, argc, 2);