summaryrefslogtreecommitdiff
path: root/doc/en/weechat_plugin_api.en.txt
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-03-23 18:24:47 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-03-23 18:24:47 +0100
commit9972cce777852c59c4ba3226d52cec83565b1dd9 (patch)
treeca8e8e67885269a9610fe2eb7d8b508b33a6cfea /doc/en/weechat_plugin_api.en.txt
parent4474f9ca0e7d0eca0edfeae6310594b2436a1b03 (diff)
downloadweechat-9972cce777852c59c4ba3226d52cec83565b1dd9.zip
core: add a connection timeout for child process in hook_connect (bug #35966)
Diffstat (limited to 'doc/en/weechat_plugin_api.en.txt')
-rw-r--r--doc/en/weechat_plugin_api.en.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt
index c90fdf16c..f1f09a5f4 100644
--- a/doc/en/weechat_plugin_api.en.txt
+++ b/doc/en/weechat_plugin_api.en.txt
@@ -7090,6 +7090,7 @@ Arguments:
*** 'WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR': GnuTLS init error
*** 'WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR': GnuTLS handshake error
*** 'WEECHAT_HOOK_CONNECT_MEMORY_ERROR': insufficient memory
+*** 'WEECHAT_HOOK_CONNECT_TIMEOUT': timeout
** 'gnutls_rc': result value of 'gnutls_handshake()'
** 'const char *error': result value of 'gnutls_strerror(gnutls_rc)'
** 'const char *ip_address': IP address found
@@ -7139,6 +7140,9 @@ my_connect_cb (void *data, int status, int gnutls_rc, const char *error,
case WEECHAT_HOOK_CONNECT_MEMORY_ERROR:
/* ... */
break;
+ case WEECHAT_HOOK_CONNECT_TIMEOUT:
+ /* ... */
+ break;
}
return WEECHAT_RC_OK;
}
@@ -7179,6 +7183,8 @@ def my_connect_cb(data, status, gnutls_rc, error, ip_address):
# ...
elif status == WEECHAT_HOOK_CONNECT_MEMORY_ERROR:
# ...
+ elif status == WEECHAT_HOOK_CONNECT_TIMEOUT:
+ # ...
return weechat.WEECHAT_RC_OK
hook = weechat.hook_connect("", "my.server.org", 1234, sock, 0, "",