-
Notifications
You must be signed in to change notification settings - Fork 3
/
tcpclient-help.pd
94 lines (94 loc) · 3.05 KB
/
tcpclient-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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#N canvas 6 62 1018 535 12;
#X msg 164 165 disconnect;
#X obj 305 378 unpack 0 0 0 0;
#X floatatom 305 401 3 0 0 0 - - -;
#X floatatom 336 401 3 0 0 0 - - -;
#X floatatom 368 401 3 0 0 0 - - -;
#X floatatom 400 401 3 0 0 0 - - -;
#X text 269 401 from;
#X msg 101 102 connect 132.205.142.12 80;
#X obj 285 306 tcpclient;
#X obj 325 357 tgl 15 0 empty empty connected 18 7 0 8 -24198 -241291
-1 0 1;
#X text 217 51 connect with an IP address and port number;
#X msg 76 77 connect www.concordia.ca 80;
#X text 356 305 tcpclient opens a tcp socket to send and receive bytes
on;
#X text 94 307 See also:;
#X msg 51 52 connect 127.0.0.1 9997;
#X obj 95 329 tcpreceive;
#X text 350 188 semicolon-terminated string for netserver or netreceive
;
#X msg 189 190 send 49 127 128 51 59;
#X obj 95 352 tcpserver;
#X text 593 24 tcpclient can connect to a server and send and receive
messages as lists of bytes. Any integer value between 0 and 255 can
be transmitted or received.;
#X msg 229 214 71 69 84 32 104 116 116 112 58 47 47 47 105 110 100
101 120 46 104 116 109 108 13 10;
#X text 256 250 'send' prefix is optional;
#X obj 285 452 spigot;
#X obj 324 429 tgl 15 0 empty empty enable_print 18 7 0 8 -24198 -241291
-1 0 1;
#X floatatom 797 190 9 0 0 0 - - -;
#X msg 140 125 send 71 69 84 32 104 116 116 112 58 47 47 47 105 110
100 101 120 46 112 104 112 13 10 13 10;
#X text 90 449 2010/03/01 Martin Peach;
#X text 468 480 Attempting to print long messages can hang Pd!;
#X obj 797 166 route sent;
#X text 869 190 sent bytes;
#X floatatom 797 347 3 0 0 0 - - -;
#X floatatom 851 347 3 0 0 0 - - -;
#X floatatom 824 347 3 0 0 0 - - -;
#X obj 797 268 route address;
#X obj 797 296 unpack f f f f f;
#X floatatom 878 347 3 0 0 0 - - -;
#X floatatom 906 321 6 0 0 0 - - -;
#X text 904 347 ip;
#X text 952 320 port;
#X obj 285 481 print tcpclient:received;
#X obj 570 394 spigot;
#X obj 609 371 tgl 15 0 empty empty enable_print 18 7 0 8 -24198 -241291
-1 0 1;
#X obj 570 423 print tcpclient:status;
#X text 336 451 Received messages are output as a stream of bytes;
#X text 545 103 GET http://index.phpCRLF;
#X text 95 527 NOTE: outlet's #2 & #3 are for compatibility with mrpeach's
net objects. all information is available via outlet#4 as well!;
#X text 91 464 2010/10/08 Roman Haefeli;
#X obj 345 331 s \$0.tcpclient.o4;
#X obj 570 348 r \$0.tcpclient.o4;
#X obj 797 242 r \$0.tcpclient.o4;
#X obj 797 142 r \$0.tcpclient.o4;
#X msg 21 22 timeout 5000;
#X text 133 19 set connection timeout in ms;
#X connect 0 0 8 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 1 2 4 0;
#X connect 1 3 5 0;
#X connect 7 0 8 0;
#X connect 8 0 22 0;
#X connect 8 1 1 0;
#X connect 8 2 9 0;
#X connect 8 3 47 0;
#X connect 11 0 8 0;
#X connect 14 0 8 0;
#X connect 17 0 8 0;
#X connect 20 0 8 0;
#X connect 22 0 39 0;
#X connect 23 0 22 1;
#X connect 25 0 8 0;
#X connect 28 0 24 0;
#X connect 33 0 34 0;
#X connect 34 0 30 0;
#X connect 34 1 32 0;
#X connect 34 2 31 0;
#X connect 34 3 35 0;
#X connect 34 4 36 0;
#X connect 40 0 42 0;
#X connect 41 0 40 1;
#X connect 48 0 40 0;
#X connect 49 0 33 0;
#X connect 50 0 28 0;
#X connect 51 0 8 0;