aboutsummaryrefslogtreecommitdiff
path: root/net/tcpserver-help.pd
blob: 06bc94a19ce78efe1143707c629e288f70af96f6 (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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#N canvas 171 223 991 623 12;
#X msg 173 7 print;
#X floatatom 167 236 5 0 0 0 - - -;
#X floatatom 199 171 5 0 0 0 - - -;
#X obj 257 190 unpack 0 0 0 0;
#X floatatom 257 213 3 0 0 0 - - -;
#X floatatom 288 213 3 0 0 0 - - -;
#X floatatom 320 213 3 0 0 0 - - -;
#X floatatom 354 213 3 0 0 0 - - -;
#X text 214 212 from;
#X text 209 235 connections;
#X obj 29 240 print received;
#X msg 173 61 client 1 1 2 3;
#X msg 173 34 broadcast 1 2 3;
#X text 225 8 list of connections;
#X text 296 34 send to all clients;
#X text 287 61 send to client 1;
#X text 129 171 on socket;
#X msg 173 88 send 504 1 2 3;
#X text 287 88 send to client on socket 504;
#X msg 508 -278 client 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
18 19;
#X msg 508 -255 client 1 20 21 22 23 24 25 26 27 28 29 30 31 32 33
34 35 36 37 38 39;
#X msg 508 -217 client 1 40 41 42 43 44 45 46 47 48 49 50 51 52 53
54 55 56 57 58 59;
#X msg 508 -179 client 1 60 61 62 63 64 65 66 67 68 69 70 71 72 73
74 75 76 77 78 79;
#X msg 508 -141 client 1 80 81 82 83 84 85 86 87 88 89 90 91 92 93
94 95 96 97 98 99;
#X msg 508 -103 client 1 100 101 102 103 104 105 106 107 108 109 110
111 112 113 114 115 116 117 118 119;
#X msg 508 -65 client 1 120 121 122 123 124 125 126 127 138 139 140
141 142 143 144 145 146 147 148 149;
#X msg 508 -27 client 1 150 151 152 153 154 155 156 157 158 159 160
161 162 163 164 165 166 167 168 169;
#X msg 508 11 client 1 170 171 172 173 174 175 176 177 178 179 180
181 182 183 184 185 186 187 188 189;
#X msg 508 49 client 1 190 191 192 193 194 195 196 197 198 199 200
201 202 203 204 205 206 207 208 209;
#X msg 508 87 client 1 210 211 212 213 214 215 216 217 218 219 220
221 222 223 224 225 226 227 228 229;
#X msg 508 125 client 1 230 231 232 233 234 235 236 237 238 239 240
241 242 243 244 245 246 247 248 249;
#X msg 508 163 client 1 250 251 252 253 254 255;
#X obj 39 -245 openpanel;
#X obj 39 -264 bng 15 250 50 0 empty empty empty 17 7 0 10 -24198 -241291
-1;
#X text 250 -290 send a file;
#X text 121 -246 ...any file;
#X msg -9 -290 client 1 ../doc/5.reference/test.txt;
#X msg 39 -221 client 1 \$1;
#X msg 166 -54 10 1 2 43;
#X text 239 -54 'send' prefix is optional;
#X text 170 -33 (the first number is socket number);
#X msg 194 -115 disconnectsocket \$1;
#X msg 91 -88 disconnectclient \$1;
#X obj 508 188 s toserver;
#X obj 157 121 r toserver;
#X floatatom 113 -156 5 0 0 0 - - -;
#X obj 91 -137 f;
#X obj 91 -156 bng 15 250 50 0 empty empty empty 17 7 0 10 -258699
-241291 -1;
#X floatatom 216 -156 5 0 0 0 - - -;
#X obj 194 -137 f;
#X obj 194 -156 bng 15 250 50 0 empty empty empty 17 7 0 10 -258699
-241291 -1;
#X text 62 -175 disconnect by socket or client number;
#X text 508 -303 tcpserver sends and receives bytes on [0...255];
#X text 243 143 argument is port number;
#X text 27 263 Received messages are output as lists of bytes;
#X text 26 281 ***WARNING*** Attempting to print long messages can
hang pd!;
#X obj 29 218 spigot;
#X obj 68 198 tgl 15 0 empty empty enable_print 17 7 0 10 -24198 -258699
-258699 0 1;
#X msg 56 124 dump \$1;
#X obj 56 104 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text -12 54 dump received;
#X text -12 70 characters to main;
#X text -12 85 window in hexdump;
#X text -12 101 format:;
#X obj 136 144 tcpserver 9997;
#X text 529 246 2008/03/20 Martin Peach;
#X connect 0 0 64 0;
#X connect 3 0 4 0;
#X connect 3 1 5 0;
#X connect 3 2 6 0;
#X connect 3 3 7 0;
#X connect 11 0 64 0;
#X connect 12 0 64 0;
#X connect 17 0 64 0;
#X connect 19 0 43 0;
#X connect 20 0 43 0;
#X connect 21 0 43 0;
#X connect 22 0 43 0;
#X connect 23 0 43 0;
#X connect 24 0 43 0;
#X connect 25 0 43 0;
#X connect 26 0 43 0;
#X connect 27 0 43 0;
#X connect 28 0 43 0;
#X connect 29 0 43 0;
#X connect 30 0 43 0;
#X connect 31 0 43 0;
#X connect 32 0 37 0;
#X connect 33 0 32 0;
#X connect 36 0 64 0;
#X connect 37 0 64 0;
#X connect 38 0 64 0;
#X connect 41 0 64 0;
#X connect 42 0 64 0;
#X connect 44 0 64 0;
#X connect 45 0 46 1;
#X connect 46 0 42 0;
#X connect 47 0 46 0;
#X connect 48 0 49 1;
#X connect 49 0 41 0;
#X connect 50 0 49 0;
#X connect 56 0 10 0;
#X connect 57 0 56 1;
#X connect 58 0 64 0;
#X connect 59 0 58 0;
#X connect 64 0 56 0;
#X connect 64 1 1 0;
#X connect 64 2 2 0;
#X connect 64 3 3 0;