aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2009-04-08 19:48:50 +0000
committerMartin Peach <mrpeach@users.sourceforge.net>2009-04-08 19:48:50 +0000
commit4e710aee71943a8667d5b2c4ad4e57be890e6d23 (patch)
tree6c6024b9c363cd21beff6ea90a60c5de4537aa62
parent6df697d3b2c03debb3d53252daf1ce4cb646ebe2 (diff)
Oops, I had forgotten to add the default timeout of 1000us.
svn path=/trunk/externals/mrpeach/; revision=10988
-rw-r--r--net/tcpclient.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tcpclient.c b/net/tcpclient.c
index 1f14fac..21729db 100644
--- a/net/tcpclient.c
+++ b/net/tcpclient.c
@@ -505,6 +505,7 @@ static void *tcpclient_new(t_floatarg udpflag)
x->x_addrbytes[i].a_w.w_float = 0;
}
x->x_addr = 0L;
+ x->x_timeout_us = 1000; /* set a default 1ms send timeout */
/* prepare child thread */
if(pthread_attr_init(&x->x_threadattr) < 0)
post("%s: warning: could not prepare child thread", objName);