aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-12-12 09:07:01 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-12-12 09:07:01 +0000
commita747b301849a7660f1dd6202f50372c67b771db1 (patch)
tree8ecabc1657cc9d002470659fc4066824a2617fb7
parentece462d4096cf60b50bc46a715ff84789ff23a7f (diff)
removed the "break;" statement in the broadcast() code to enable broadcasting
to all connected clients (and not jsut the first one) svn path=/trunk/externals/mrpeach/; revision=6815
-rwxr-xr-xnet/tcpserver.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/tcpserver.c b/net/tcpserver.c
index 506f004..f283408 100755
--- a/net/tcpserver.c
+++ b/net/tcpserver.c
@@ -443,14 +443,12 @@ static void tcpserver_client_send(t_tcpserver *x, t_symbol *s, int argc, t_atom
static void tcpserver_broadcast(t_tcpserver *x, t_symbol *s, int argc, t_atom *argv)
{
int client;
-
/* enumerate through the clients and send each the message */
for(client = 0; client < x->x_nconnections; client++) /* check if connection exists */
{
if(x->x_fd[client] >= 0)
{ /* socket exists for this client */
tcp_server_send_bytes(client, x, argc, argv);
- break;
}
}
}