From a747b301849a7660f1dd6202f50372c67b771db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 12 Dec 2006 09:07:01 +0000 Subject: 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 --- net/tcpserver.c | 2 -- 1 file changed, 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; } } } -- cgit v1.2.1