aboutsummaryrefslogtreecommitdiff
path: root/doc/tutorials/networking/10.chat_client.pd
blob: 365e9eb3d89cbbfe75f3f32f5184925dd14c4a7a (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#N canvas 514 22 638 458 10;
#X msg 159 205 disconnect;
#X obj 77 269 print;
#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 1 1;
#X obj 121 35 select 1;
#X obj 199 245 s \$0-tgl;
#X msg 224 197 label \$1;
#X obj 224 173 symbol;
#X msg 220 133 connected;
#X msg 298 132 -;
#X msg 112 197 color \$1 \$2 \$3;
#X msg 158 165 1 1 0;
#X msg 71 165 -65281 0 -1;
#X obj 171 55 bang;
#X connect 0 0 1 0;
#X connect 0 0 2 0;
#X connect 2 0 10 0;
#X connect 2 0 6 0;
#X connect 2 1 11 0;
#X connect 4 0 3 0;
#X connect 5 0 4 0;
#X connect 6 0 5 0;
#X connect 7 0 5 0;
#X connect 8 0 3 0;
#X connect 9 0 8 0;
#X connect 10 0 8 0;
#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 241 253 pd;
#X text 30 10 type your message in the box below and hit return to
send;
#X msg 137 176 connect localhost 47292;
#X text 286 176 <-- first connect to the chat-server.pd;
#X obj 137 304 pddp/print;
#X symbolatom 49 104 50 0 0 0 - - -;
#X obj 49 143 list prepend send;
#X obj 49 165 list trim;
#X text 52 305 last message:;
#X obj 137 233 maxlib/netclient;
#X connect 0 0 12 0;
#X connect 5 0 12 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 10 0 12 0;
#X connect 12 0 1 0;
#X connect 12 0 7 0;
#X connect 12 1 3 0;