From 5140196012f3adb5788b0c0533fe60ae5befdd5b Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 5 May 2006 07:23:54 +0000 Subject: first sketch on net intro svn path=/trunk/; revision=5048 --- .../networking/04.netserver_and_netclient.pd | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 doc/tutorials/networking/04.netserver_and_netclient.pd (limited to 'doc/tutorials/networking/04.netserver_and_netclient.pd') diff --git a/doc/tutorials/networking/04.netserver_and_netclient.pd b/doc/tutorials/networking/04.netserver_and_netclient.pd new file mode 100644 index 00000000..ed64101a --- /dev/null +++ b/doc/tutorials/networking/04.netserver_and_netclient.pd @@ -0,0 +1,52 @@ +#N canvas 15 58 644 464 10; +#X obj 8 10 cnv 15 400 40 empty empty netserver_and_netclient 20 12 +0 24 -228992 -66577 0; +#X floatatom 61 243 5 0 0 0 - - -; +#X floatatom 91 224 5 0 0 0 - - -; +#X symbolatom 165 178 10 0 0 0 - - -; +#X floatatom 122 201 5 0 0 0 - - -; +#X text 160 203 socket number; +#X obj 125 375 netclient; +#X msg 164 344 disconnect; +#X floatatom 184 397 5 0 0 0 - - -; +#X msg 141 296 send \$1; +#X obj 338 373 netclient; +#X msg 355 343 disconnect; +#X floatatom 395 394 5 0 0 0 - - -; +#X msg 338 303 send \$1; +#X obj 338 419 print client2; +#X floatatom 140 278 5 0 0 0 - - -; +#X floatatom 337 285 5 0 0 0 - - -; +#X obj 61 177 netserver 3001; +#X msg 124 323 connect localhost 3001; +#X msg 307 324 connect localhost 3001; +#X msg 62 144 broadcast hello kuva!; +#X text 99 244 data; +#X text 133 225 connections; +#X text 164 163 IP address; +#X obj 125 419 print client1; +#X text 302 162 netserver connects; +#X text 301 174 different clients over; +#X text 301 188 a network \, broadcasting; +#X text 301 200 stream of information; +#X text 300 211 through a server; +#X text 13 71 [netserver] and [netclient] gives you a bi-directional +connection so you can send data back and forth thru it. Also \, [netserver] +helps you manage multiple connections.; +#X connect 6 0 24 0; +#X connect 6 1 8 0; +#X connect 7 0 6 0; +#X connect 9 0 6 0; +#X connect 10 0 14 0; +#X connect 10 1 12 0; +#X connect 11 0 10 0; +#X connect 13 0 10 0; +#X connect 15 0 9 0; +#X connect 16 0 13 0; +#X connect 17 0 1 0; +#X connect 17 1 2 0; +#X connect 17 2 4 0; +#X connect 17 3 3 0; +#X connect 18 0 6 0; +#X connect 19 0 10 0; +#X connect 20 0 17 0; -- cgit v1.2.1