-
Notifications
You must be signed in to change notification settings - Fork 3
/
udpsndrcv-help.pd
59 lines (59 loc) · 1.8 KB
/
udpsndrcv-help.pd
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 247 75 632 526 10;
#X obj 72 255 udpsndrcv;
#X msg 72 148 connect localhost 12345 54321;
#X obj 382 255 udpsndrcv;
#X obj 72 360 print A:connected?;
#X obj 102 329 print A:data;
#X obj 132 300 print A:status;
#X obj 442 300 print B:status;
#X obj 412 329 print B:data;
#X obj 382 357 print B:connected?;
#X msg 86 171 send 10 20 30 40;
#X msg 91 196 disconnect;
#X msg 114 224 status;
#X msg 401 196 disconnect;
#X msg 424 224 status;
#X msg 382 148 connect localhost 54321 12345;
#X msg 396 171 send 50 40 30 20 10;
#X text 80 26 [udpsndrcv] bi-directional communication;
#X text 74 59 this is an abstraction around [udpclient] for compatibility
with mrpeach/net's object of the same name.;
#N canvas 4 78 530 417 sending/receiving 0;
#X obj 142 275 udpsndrcv;
#X msg 161 216 disconnect;
#X msg 184 244 status;
#X msg 142 168 connect localhost 55555 55555;
#X msg 156 191 send 5 5 5;
#X obj 202 320 print C:status;
#X obj 172 349 print C:data;
#X obj 142 377 print C:connected?;
#X text 52 58 when using the same port for sending and receiving \,
you must talk with real remote host (NOT localhost).;
#X text 55 88 else you will simply be talking to yourself...;
#X text 156 146 talk to yourself.;
#X connect 0 0 7 0;
#X connect 0 1 6 0;
#X connect 0 2 5 0;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
#X connect 4 0 0 0;
#X restore 172 492 pd sending/receiving on the same port;
#X text 86 394 send to port:12345;
#X text 72 409 listen on port:54321;
#X text 396 394 send to port:54321;
#X text 382 409 listen on port:12345;
#X connect 0 0 3 0;
#X connect 0 1 4 0;
#X connect 0 2 5 0;
#X connect 1 0 0 0;
#X connect 2 0 8 0;
#X connect 2 1 7 0;
#X connect 2 2 6 0;
#X connect 9 0 0 0;
#X connect 10 0 0 0;
#X connect 11 0 0 0;
#X connect 12 0 2 0;
#X connect 13 0 2 0;
#X connect 14 0 2 0;
#X connect 15 0 2 0;