Update of /cvsroot/pure-data/doc/tutorials/networking In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3574
Modified Files: 01.netsend_netreceive.pd TEMPLATE.pd chat-client.pd Log Message: minor tweaks
Index: TEMPLATE.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/networking/TEMPLATE.pd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TEMPLATE.pd 11 Apr 2006 02:29:04 -0000 1.2 --- TEMPLATE.pd 5 May 2006 06:54:46 -0000 1.3 *************** *** 1,3 **** ! #N canvas 15 58 636 456 10; #X obj 8 10 cnv 15 400 40 empty empty TEMPLATE 20 12 0 24 -228992 -66577 0; --- 1,3 ---- ! #N canvas 15 58 640 460 10; #X obj 8 10 cnv 15 400 40 empty empty TEMPLATE 20 12 0 24 -228992 -66577 0;
Index: chat-client.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/networking/chat-client.pd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** chat-client.pd 11 Apr 2006 02:36:53 -0000 1.2 --- chat-client.pd 5 May 2006 06:54:46 -0000 1.3 *************** *** 1,9 **** ! #N canvas 114 52 613 511 10; ! #X obj 446 11 import maxlib cyclone; #X msg 130 295 disconnect; #X obj 108 323 netclient; #X obj 50 233 prepend send; ! #X obj 108 377 prepend set; ! #X obj 60 377 print; #X obj 27 66 trigger bang bang; #X msg 27 88 clear; --- 1,9 ---- ! #N canvas 257 22 610 553 10; ! #X obj 413 12 import maxlib cyclone zexy; #X msg 130 295 disconnect; #X obj 108 323 netclient; #X obj 50 233 prepend send; ! #X obj 125 415 prepend set; ! #X obj 136 356 print; #X obj 27 66 trigger bang bang; #X msg 27 88 clear; *************** *** 39,52 **** #X connect 11 0 7 0; #X coords 0 -1 1 1 25 25 1 100 100; ! #X restore 181 345 pd; #X msg 108 266 connect pdbox.at.or.at 47292; #X msg 27 27 send; ! #X obj 108 398 entry 300 100 grey90 black; #X obj 49 121 entry 300 100 grey90 black; #X text 114 96 type your message in the box below , and click send above; #X connect 1 0 2 0; - #X connect 2 0 4 0; #X connect 2 0 5 0; #X connect 2 1 10 0; #X connect 3 0 2 0; --- 39,56 ---- #X connect 11 0 7 0; #X coords 0 -1 1 1 25 25 1 100 100; ! #X restore 191 345 pd; #X msg 108 266 connect pdbox.at.or.at 47292; #X msg 27 27 send; ! #X obj 125 436 entry 300 100 grey90 black; #X obj 49 121 entry 300 100 grey90 black; #X text 114 96 type your message in the box below , and click send above; + #X obj 67 356 niagara 1; + #X text 68 437 message:; + #X symbolatom 67 398 25 0 0 0 sender: - -; + #X obj 67 377 symbol; #X connect 1 0 2 0; #X connect 2 0 5 0; + #X connect 2 0 16 0; #X connect 2 1 10 0; #X connect 3 0 2 0; *************** *** 58,59 **** --- 62,66 ---- #X connect 12 0 6 0; #X connect 14 0 3 0; + #X connect 16 0 19 0; + #X connect 16 1 4 0; + #X connect 19 0 18 0;
Index: 01.netsend_netreceive.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/networking/01.netsend_netreceive.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 01.netsend_netreceive.pd 8 Apr 2006 04:54:57 -0000 1.1 --- 01.netsend_netreceive.pd 5 May 2006 06:54:44 -0000 1.2 *************** *** 1,26 **** ! #N canvas 15 58 632 452 10; #X obj 8 10 cnv 15 400 40 empty empty netsend_netreceive 20 12 0 24 -228992 -66577 0; ! #X obj 56 181 send $0-local-data; ! #X obj 56 292 receive $0-local-data; ! #X obj 60 144 hsl 150 20 0 127 0 0 empty empty empty -2 -6 0 8 -225271 ! -1 -1 7600 1; ! #X obj 59 331 hsl 150 20 0 127 0 0 empty empty empty -2 -6 0 8 -262144 ! -1 -1 7600 1; ! #X obj 311 144 hsl 150 20 0 127 0 0 empty empty empty -2 -6 0 8 -225280 ! -1 -1 1400 1; ! #X obj 311 331 hsl 150 20 0 127 0 0 empty empty empty -2 -6 0 8 -262144 ! -1 -1 1400 1; ! #X obj 308 231 netsend; ! #X obj 308 291 netreceive 34567; ! #X msg 326 192 connect localhost 34567; ! #X obj 308 250 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; ! #X obj 415 310 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; ! #X text 329 249 <-- connection status; ! #X text 433 310 <-- connection status; ! #X msg 327 211 disconnect; ! #X msg 308 169 send $1; #X text 45 78 At the most basic level , networking in Pd works a lot like the standard [send] and [receive] objects , except there is a --- 1,26 ---- ! #N canvas 15 58 636 456 10; #X obj 8 10 cnv 15 400 40 empty empty netsend_netreceive 20 12 0 24 -228992 -66577 0; ! #X obj 56 211 send $0-local-data; ! #X obj 56 342 receive $0-local-data; ! #X obj 60 174 hsl 150 20 0 127 0 0 empty empty empty -2 -6 0 8 -225271 ! -1 -1 0 1; ! #X obj 59 381 hsl 150 20 0 127 0 0 empty empty empty -2 -6 0 8 -262144 ! -1 -1 0 1; ! #X obj 311 174 hsl 150 20 0 127 0 0 empty empty empty -2 -6 0 8 -225280 ! -1 -1 0 1; ! #X obj 311 381 hsl 150 20 0 127 0 0 empty empty empty -2 -6 0 8 -262144 ! -1 -1 0 1; ! #X obj 308 261 netsend; ! #X obj 308 341 netreceive 34567; ! #X msg 326 222 connect localhost 34567; ! #X obj 308 280 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; ! #X obj 415 360 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; ! #X text 329 279 <-- connection status; ! #X text 433 360 <-- connection status; ! #X msg 327 241 disconnect; ! #X msg 308 199 send $1; #X text 45 78 At the most basic level , networking in Pd works a lot like the standard [send] and [receive] objects , except there is a