From 6744eb5705103c2910773c99cffb1569286f2a7f Mon Sep 17 00:00:00 2001 From: alloncm Date: Sat, 26 Apr 2025 18:44:18 +0300 Subject: [PATCH] Add nxlinkConnectToHost note about the socket driver Add a comment that the socket driver must be initialized prior to calling this function, otherwise this function will fail. --- nx/include/switch/runtime/nxlink.h | 1 + 1 file changed, 1 insertion(+) diff --git a/nx/include/switch/runtime/nxlink.h b/nx/include/switch/runtime/nxlink.h index 5072a58c..5eadd323 100644 --- a/nx/include/switch/runtime/nxlink.h +++ b/nx/include/switch/runtime/nxlink.h @@ -21,6 +21,7 @@ extern struct in_addr __nxlink_host; * @param[in] redirStderr Whether to redirect stderr to nxlink output. * @return Socket fd on success, negative number on failure. * @note The socket should be closed with close() during application cleanup. + * The socket driver must be initialized, otherwise the call will fail. */ int nxlinkConnectToHost(bool redirStdout, bool redirStderr);