[PD-dev] [tcpserver]: new 'clientbuf' method seems to be buggy

Roman Haefeli reduzierer at yahoo.de
Mon Apr 6 17:38:20 CEST 2009


hi martin

i reckon, that you're working on tcpserver code these days, at least
when ever i update mrpeach from svn, the tcpserver.c file is updated. so
please tell me, if it makes sense at all to currently report bugs.

after having set the buffersize using the 'clientbuf' messages, message
to the client, for which the buffersize was set, are truncated. while
sending 30 byte messages, only 15 bytes are sent, respectively 15 bytes
are received on the client side.

please check the attached bug illustration patch

roman
-------------- next part --------------
#N canvas 416 122 897 478 10;
#X obj 464 225 mrpeach/tcpserver 3456;
#X obj 37 188 mrpeach/tcpclient;
#X msg 38 56 connect localhost 3456;
#X obj 37 217 print CLIENTOUTPUT;
#X msg 53 78 disconnect;
#X msg 464 99 clientbuf 1 1024;
#X obj 615 252 route sent;
#X msg 615 278 \$2;
#X msg 615 301 \$1 bytes;
#X obj 464 259 print SERVEROUTPUT;
#X msg 482 131 broadcast 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
18 19 20 21 22 23 24 25 26 27 28 29 30;
#X obj 615 322 print SERVERSENT;
#X msg 65 106 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;
#X text 17 56 1;
#X text 425 100 2;
#X text 451 138 3;
#X text 579 322 4a.;
#X text 8 220 4b.;
#X text 30 319 1 connect client to the server;
#X text 30 344 2 set buffersize for client 1;
#X text 29 369 3 sent a 'broadcast' message from server with 30 byte
size;
#X text 28 392 4 only 15 bytes are sent \, respectively received on
the client side.;
#X text 33 293 BUG DESCRIPTION;
#X text 25 439 tested on ubuntu hardy with pd 0.42.3 and tcpserver
svn checkout from 2009-04-06;
#X msg 487 176 client 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
19 20 21 22 23 24 25 26 27 28 29 30;
#X connect 0 0 9 0;
#X connect 0 4 6 0;
#X connect 1 0 3 0;
#X connect 2 0 1 0;
#X connect 4 0 1 0;
#X connect 5 0 0 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 11 0;
#X connect 10 0 0 0;
#X connect 12 0 1 0;
#X connect 24 0 0 0;


More information about the Pd-dev mailing list