aboutsummaryrefslogtreecommitdiff
path: root/doc/tutorials/networking
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorials/networking')
-rw-r--r--doc/tutorials/networking/09.chat-server.pd12
-rw-r--r--doc/tutorials/networking/10.chat_client.pd75
2 files changed, 47 insertions, 40 deletions
diff --git a/doc/tutorials/networking/09.chat-server.pd b/doc/tutorials/networking/09.chat-server.pd
index 194ac39d..eff0ec2d 100644
--- a/doc/tutorials/networking/09.chat-server.pd
+++ b/doc/tutorials/networking/09.chat-server.pd
@@ -1,17 +1,21 @@
-#N canvas 10 40 620 460 10;
+#N canvas 32 44 620 460 10;
#X declare -lib maxlib -lib cyclone -lib zexy;
#X obj 258 73 import maxlib cyclone zexy;
#X obj 141 172 netserver 47292;
#X obj 68 143 prepend broadcast;
-#X obj 153 264 prepend;
-#X obj 197 236 makesymbol client%s_%s;
-#X obj 197 211 pack float symbol;
+#X obj 155 284 prepend;
+#X obj 199 256 makesymbol client%s_%s;
+#X obj 199 231 pack float symbol;
#X obj 18 20 cnv 15 400 40 empty empty chat_server 20 12 0 24 -228992
-66577 0;
+#X symbolatom 220 283 30 0 0 1 last_client - -;
+#X floatatom 170 197 5 0 0 1 connections - -;
#X connect 1 0 3 0;
+#X connect 1 1 8 0;
#X connect 1 2 5 0;
#X connect 1 3 5 1;
#X connect 2 0 1 0;
#X connect 3 0 2 0;
#X connect 4 0 3 1;
+#X connect 4 0 7 0;
#X connect 5 0 4 0;
diff --git a/doc/tutorials/networking/10.chat_client.pd b/doc/tutorials/networking/10.chat_client.pd
index ef2feabf..b58cb841 100644
--- a/doc/tutorials/networking/10.chat_client.pd
+++ b/doc/tutorials/networking/10.chat_client.pd
@@ -1,19 +1,17 @@
-#N canvas 10 40 620 460 10;
-#X declare -lib libdir;
+#N canvas 37 45 638 458 10;
+#X declare -lib maxlib -lib cyclone -lib zexy;
#X obj 413 12 import maxlib cyclone zexy;
-#X msg 160 255 disconnect;
-#X obj 138 283 netclient;
-#X obj 50 203 prepend send;
-#X obj 155 375 prepend set;
-#X obj 166 316 print;
-#X obj 27 36 trigger bang bang;
-#X msg 27 58 clear;
-#X text 344 226 <-- first connect to the server;
-#X text 243 254 <-- disconnect when you are done to free the port;
+#X msg 159 205 disconnect;
+#X obj 137 233 netclient;
+#X obj 49 153 prepend send;
+#X obj 77 269 print;
+#X obj 27 66 trigger bang bang;
+#X msg 27 88 clear;
+#X text 242 204 <-- disconnect when you are done to free the port;
#N canvas 238 612 454 304 (subpatch) 0;
#X obj 101 10 inlet;
#X obj 100 100 tgl 25 0 empty \$0-tgl connected 0 -6 0 8 -4033 -262144
--1 0 1;
+-1 1 1;
#X obj 121 35 select 1;
#X obj 199 245 s \$0-tgl;
#X msg 224 197 label \$1;
@@ -39,29 +37,34 @@
#X connect 11 0 9 0;
#X connect 11 0 7 0;
#X coords 0 -1 1 1 25 25 1 100 100;
-#X restore 221 305 pd;
-#X msg 138 226 connect pdbox.at.or.at 47292;
-#X msg 27 7 send;
-#X obj 155 396 flatspace/entry 300 100 grey90 black;
-#X obj 49 91 flatspace/entry 300 100 grey90 black;
-#X text 114 66 type your message in the box below \, and click send
-above;
-#X obj 97 316 niagara 1;
-#X text 98 397 message:;
-#X symbolatom 97 358 25 0 0 0 sender: - -;
-#X obj 97 337 symbol;
+#X restore 205 250 pd;
+#X msg 27 37 send;
+#X obj 137 344 flatspace/entry 300 100 grey90 black;
+#X obj 49 121 flatspace/entry 300 20 grey90 black;
+#X text 81 345 message:;
+#X text 30 10 type your message in the box below and hit return to
+send;
+#X obj 394 83 select return;
+#X msg 137 176 connect localhost 47292;
+#X obj 137 304 prepend append;
+#X msg 260 305 key 10;
+#X obj 137 282 trigger anything bang;
+#X text 305 305 send return to make new line;
+#X text 286 176 <-- first connect to the chat-server.pd;
#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 2 0 4 0;
+#X connect 2 0 18 0;
+#X connect 2 1 8 0;
#X connect 3 0 2 0;
-#X connect 4 0 13 0;
-#X connect 6 0 7 0;
-#X connect 6 1 14 0;
-#X connect 7 0 14 0;
-#X connect 11 0 2 0;
-#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;
+#X connect 5 0 6 0;
+#X connect 5 1 11 0;
+#X connect 6 0 11 0;
+#X connect 9 0 5 0;
+#X connect 11 0 3 0;
+#X connect 11 1 14 0;
+#X connect 14 0 5 0;
+#X connect 15 0 2 0;
+#X connect 16 0 10 0;
+#X connect 17 0 10 0;
+#X connect 18 0 16 0;
+#X connect 18 1 17 0;