summaryrefslogtreecommitdiffstats
path: root/include/cmsys.h
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-25 09:32:25 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-25 09:32:25 +0800
commitfce991c7ba4a2ebed2658352b6bd4e677773c493 (patch)
tree288c91c9cabeb7907ee0f3a008e83aca7c58cd18 /include/cmsys.h
parent0e040b10e38aee0c0136732f74a3e8bd988b50e5 (diff)
downloadpttbbs-fce991c7ba4a2ebed2658352b6bd4e677773c493.tar
pttbbs-fce991c7ba4a2ebed2658352b6bd4e677773c493.tar.gz
pttbbs-fce991c7ba4a2ebed2658352b6bd4e677773c493.tar.bz2
pttbbs-fce991c7ba4a2ebed2658352b6bd4e677773c493.tar.lz
pttbbs-fce991c7ba4a2ebed2658352b6bd4e677773c493.tar.xz
pttbbs-fce991c7ba4a2ebed2658352b6bd4e677773c493.tar.zst
pttbbs-fce991c7ba4a2ebed2658352b6bd4e677773c493.zip
* enable timeout in toconnectex.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4770 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/cmsys.h')
-rw-r--r--include/cmsys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cmsys.h b/include/cmsys.h
index ae7f6347..4574f74b 100644
--- a/include/cmsys.h
+++ b/include/cmsys.h
@@ -78,6 +78,7 @@ extern uint32_t ipstr2int(const char *ip);
extern int tobind (const char *addr);
extern int tobindex (const char *addr, int qlen, int (*setsock)(int), int do_listen);
extern int toconnect(const char *addr);
+extern int toconnectex(const char *addr, int timeout);
extern int toread (int fd, void *buf, int len);
extern int towrite (int fd, const void *buf, int len);
extern int send_remote_fd(int tunnel, int fd);