aboutsummaryrefslogtreecommitdiff
path: root/doc/tutorials/networking/chat-client.pd
blob: d03eb75af6ac50d09636dceddd05987689a48b08 (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
53
54
55
56
57
58
59
#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;
#X text 314 266 <-- first connect to the server;
#X text 213 294 <-- 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 181 345 pd;
#X msg 108 266 connect pdbox.at.or.at 50505;
#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;
#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;