aboutsummaryrefslogtreecommitdiff
path: root/src/timeout.c
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-01-18 00:04:20 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-01-18 00:04:20 +0000
commitc8d58798f0b0c789df5c566494112f81ac302432 (patch)
tree40c52eab0a4bf92636ebe13027d165f0b8452bb1 /src/timeout.c
parent02ef4e7daae6bef629dcb568052755fb85ed2efc (diff)
downloadluasocket-c8d58798f0b0c789df5c566494112f81ac302432.tar.gz
luasocket-c8d58798f0b0c789df5c566494112f81ac302432.tar.bz2
luasocket-c8d58798f0b0c789df5c566494112f81ac302432.zip
Trying to get connect-with-timeout to work. Darwin works...
Diffstat (limited to 'src/timeout.c')
-rw-r--r--src/timeout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timeout.c b/src/timeout.c
index 2d88ded..0063378 100644
--- a/src/timeout.c
+++ b/src/timeout.c
@@ -54,7 +54,7 @@ void tm_init(p_tm tm, int block, int total)
54* Returns 54* Returns
55* the number of ms left or -1 if there is no time limit 55* the number of ms left or -1 if there is no time limit
56\*-------------------------------------------------------------------------*/ 56\*-------------------------------------------------------------------------*/
57int tm_getsuccess(p_tm tm) 57int tm_get(p_tm tm)
58{ 58{
59 if (tm->block < 0 && tm->total < 0) { 59 if (tm->block < 0 && tm->total < 0) {
60 return -1; 60 return -1;
@@ -89,7 +89,7 @@ int tm_getstart(p_tm tm)
89* Returns 89* Returns
90* the number of ms left or -1 if there is no time limit 90* the number of ms left or -1 if there is no time limit
91\*-------------------------------------------------------------------------*/ 91\*-------------------------------------------------------------------------*/
92int tm_getfailure(p_tm tm) 92int tm_getretry(p_tm tm)
93{ 93{
94 if (tm->block < 0 && tm->total < 0) { 94 if (tm->block < 0 && tm->total < 0) {
95 return -1; 95 return -1;