diff options
author | Martin Peach <mrpeach@users.sourceforge.net> | 2009-02-24 21:07:02 +0000 |
---|---|---|
committer | Martin Peach <mrpeach@users.sourceforge.net> | 2009-02-24 21:07:02 +0000 |
commit | 47cbcf2430165bdfb84fb0cc97a338f2ed201116 (patch) | |
tree | aad6ea5ade4477e32e10fed986dfdefa6ad39aaa /net | |
parent | 52bf1e5a47c2890c19c3582fee666c86393428e9 (diff) |
Updated help files to reflect new [tcpserver], cleaned up a bit more.
svn path=/trunk/externals/mrpeach/; revision=10813
Diffstat (limited to 'net')
-rw-r--r-- | net/tcpclient-help.pd | 173 | ||||
-rw-r--r-- | net/tcpserver-help.pd | 251 |
2 files changed, 227 insertions, 197 deletions
diff --git a/net/tcpclient-help.pd b/net/tcpclient-help.pd index 1be8763..53c8523 100644 --- a/net/tcpclient-help.pd +++ b/net/tcpclient-help.pd @@ -1,89 +1,84 @@ -#N canvas 89 21 1096 650 12; -#X msg 61 93 disconnect; -#X obj 85 292 unpack 0 0 0 0; -#X floatatom 85 315 3 0 0 0 - - -; -#X floatatom 120 315 3 0 0 0 - - -; -#X floatatom 156 315 3 0 0 0 - - -; -#X floatatom 192 315 3 0 0 0 - - -; -#X text 42 314 from; -#X msg 45 30 connect 132.205.142.12 80; -#X obj 52 240 tcpclient; -#X msg 55 53 send 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 324 38 GET http:///index.html CRLF; -#X obj 119 266 tgl 15 0 empty empty connected 18 7 0 8 -24198 -241291 --1 1 1; -#X msg 160 115 dump \$1; -#X obj 160 96 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 -; -#X msg 235 153 receive; -#X msg 311 154 recv; -#X text 214 -21 connect with an IP address and port number; -#X msg 23 5 connect www.concordia.ca 80; -#X text 231 114 print received messages to main window in hexdump format -; -#X text 138 241 tcpclient opens a tcp socket to send and receive bytes -on; -#X text 276 263 See also:; -#X obj 354 263 netclient; -#X msg 10 -20 connect 127.0.0.1 9997; -#X obj 354 286 tcpreceive; -#X text 574 285 can receive messages from tcpclient; -#X text 442 263 is what tcpclient is based on; -#X text 28 395 Received messages are output as a list of bytes; -#X text 27 413 Attempting to print long messages output can hang pd! -; -#X text 359 147 get any received data (not useful unless you need it -faster than once per 20ms); -#X text 445 93 semicolon-terminated string for netserver or netreceive -; -#X msg 249 93 send 49 127 128 51 59; -#X obj -77 460 textfile; -#X msg -79 283 clear; -#X msg 6 367 write tcpclientreceived.txt; -#X obj -79 256 loadbang; -#X obj 482 286 tcpserver; -#X text 448 285 and; -#X text -71 -82 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 515 9 send ../doc/5.reference/test.txt; -#X obj 761 51 openpanel; -#X msg 761 75 send \$1; -#X obj 761 32 bng 15 250 50 0 empty empty empty 17 7 0 10 -24198 -241291 --1; -#X text 813 9 send a file; -#X text 843 50 ...any file; -#X msg 249 196 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 788 199 'send' prefix is optional; -#X obj -51 339 list prepend add; -#X obj -69 401 list trim; -#X text 575 342 2007/06/20 Martin Peach; -#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 46 0; -#X connect 8 1 1 0; -#X connect 8 2 11 0; -#X connect 9 0 8 0; -#X connect 12 0 8 0; -#X connect 13 0 12 0; -#X connect 14 0 8 0; -#X connect 15 0 8 0; -#X connect 17 0 8 0; -#X connect 22 0 8 0; -#X connect 30 0 8 0; -#X connect 32 0 31 0; -#X connect 33 0 31 0; -#X connect 34 0 32 0; -#X connect 38 0 8 0; -#X connect 39 0 40 0; -#X connect 40 0 8 0; -#X connect 41 0 39 0; -#X connect 44 0 8 0; -#X connect 46 0 47 0; -#X connect 47 0 31 0; +#N canvas 162 3 1096 608 12;
+#X msg -112 56 disconnect;
+#X obj 160 370 unpack 0 0 0 0;
+#X floatatom 160 393 3 0 0 0 - - -;
+#X floatatom 191 393 3 0 0 0 - - -;
+#X floatatom 223 393 3 0 0 0 - - -;
+#X floatatom 255 393 3 0 0 0 - - -;
+#X text 120 392 from;
+#X msg -175 -7 connect 132.205.142.12 80;
+#X obj 130 318 tcpclient;
+#X obj 190 344 tgl 15 0 empty empty connected 18 7 0 8 -24198 -241291
+-1 0 1;
+#X msg -88 80 dump \$1;
+#X obj -140 65 tgl 15 0 empty empty empty 0 -6 0 8 -4034 -257985 -1
+1 1;
+#X msg 11 179 receive;
+#X msg 35 203 recv;
+#X text -59 -58 connect with an IP address and port number;
+#X msg -200 -32 connect www.concordia.ca 80;
+#X text -17 79 print received messages to main window in hexdump format
+;
+#X text 201 317 tcpclient opens a tcp socket to send and receive bytes
+on;
+#X text -217 305 See also:;
+#X obj -212 329 netclient;
+#X msg -225 -57 connect 127.0.0.1 9997;
+#X obj -212 352 tcpreceive;
+#X text -214 374 can receive messages from tcpclient;
+#X text -136 328 is what tcpclient is based on;
+#X text 181 444 Received messages are output as a list of bytes;
+#X text 202 476 Attempting to print long messages output can hang pd!
+;
+#X text 77 176 get any received data (not useful unless you need it
+faster than once per 20ms);
+#X text 220 225 semicolon-terminated string for netserver or netreceive
+;
+#X msg 59 227 send 49 127 128 51 59;
+#X obj -84 352 tcpserver;
+#X text -118 351 and;
+#X text 347 -55 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 -63 105 send ../doc/5.reference/test.txt;
+#X obj -15 129 openpanel;
+#X msg -15 153 send \$1;
+#X obj -101 114 bng 15 250 50 0 empty empty empty 17 7 0 10 -24198
+-241291 -1;
+#X text 172 105 send a file;
+#X text 62 128 ...any file;
+#X msg 99 251 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 529 257 'send' prefix is optional;
+#X obj 130 445 spigot;
+#X obj 169 422 tgl 15 0 empty empty enable_print 18 7 0 8 -24198 -241291
+-1 1 1;
+#X obj 130 474 print >>>;
+#X text -213 475 2009/02/24 Martin Peach;
+#X msg -136 16 send 71 69 84 32 104 116 116 112 58 47 47 47 105 110
+100 101 120 46 112 104 112 13 10;
+#X text 272 24 GET http:///index.phpCRLF;
+#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 40 0;
+#X connect 8 1 1 0;
+#X connect 8 2 9 0;
+#X connect 10 0 8 0;
+#X connect 11 0 10 0;
+#X connect 12 0 8 0;
+#X connect 13 0 8 0;
+#X connect 15 0 8 0;
+#X connect 20 0 8 0;
+#X connect 28 0 8 0;
+#X connect 32 0 8 0;
+#X connect 33 0 34 0;
+#X connect 34 0 8 0;
+#X connect 35 0 33 0;
+#X connect 38 0 8 0;
+#X connect 40 0 42 0;
+#X connect 41 0 40 1;
+#X connect 44 0 8 0;
diff --git a/net/tcpserver-help.pd b/net/tcpserver-help.pd index 06bc94a..b3fef7d 100644 --- a/net/tcpserver-help.pd +++ b/net/tcpserver-help.pd @@ -1,128 +1,163 @@ -#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
+#N canvas 8 158 1187 613 12;
+#X msg 143 -36 print;
+#X floatatom 322 164 5 0 0 0 - - -;
+#X floatatom 346 214 5 0 0 0 - - -;
+#X obj 370 165 unpack 0 0 0 0;
+#X floatatom 370 188 3 0 0 0 - - -;
+#X floatatom 401 188 3 0 0 0 - - -;
+#X floatatom 433 188 3 0 0 0 - - -;
+#X floatatom 467 188 3 0 0 0 - - -;
+#X text 327 187 from;
+#X text 238 164 connections;
+#X obj 299 289 print received;
+#X msg 239 60 client 1 1 2 3;
+#X msg 167 -12 broadcast 1 2 3;
+#X text 195 -35 list of connections;
+#X text 290 -12 send to all clients;
+#X text 276 214 on socket;
+#X msg 93 -86 send 504 1 2 3;
+#X text 204 -91 send to client on socket 504;
+#X msg 714 -228 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
+#X msg 714 -205 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
+#X msg 714 -167 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
+#X msg 714 -129 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
+#X msg 714 -91 client 1 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
+95 96 97 98 99;
+#X msg 714 -53 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
+#X msg 714 -15 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
+#X msg 714 23 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
+#X msg 714 61 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
+#X msg 714 99 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
+#X msg 714 137 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
+#X msg 714 175 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
+#X msg 714 213 client 1 250 251 252 253 254 255;
+#X obj 144 -203 openpanel;
+#X obj 144 -222 bng 15 250 50 0 empty empty choose_a_file 17 7 0 10
+-24198 -241291 -1;
+#X text 128 -183 ...any file;
+#X msg -4 -183 client 1 \$1;
+#X msg 118 -61 10 1 2 43;
+#X text 202 -74 'send' prefix is optional;
+#X text 192 -57 (the first number is socket number);
+#X msg 63 -116 disconnectsocket \$1;
+#X msg 20 -159 disconnectclient \$1;
+#X obj 714 238 s toserver;
+#X obj 197 120 r toserver;
+#X floatatom 247 -198 5 0 0 0 - - -;
+#X obj 225 -179 f;
+#X obj 225 -198 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
+#X floatatom 289 -155 5 0 0 0 - - -;
+#X obj 267 -136 f;
+#X obj 267 -155 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
+#X text -5 -136 disconnect by socket or client number;
+#X text 406 139 argument is port number;
+#X text -30 141 Received messages are output as lists of bytes;
+#X text 100 321 ***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 obj 299 267 spigot;
+#X obj 338 247 tgl 15 0 empty empty enable_print 17 7 0 10 -24198 -258699
+-45076 0 1;
+#X msg 263 84 dump \$1;
+#X obj 87 69 tgl 15 0 empty empty enable_dump 17 7 0 10 -4034 -257985
+-1 0 1;
+#X text 19 19 dump received;
+#X text 19 35 characters to main;
+#X text 19 50 window in hexdump;
+#X text 19 66 format:;
+#X obj 299 140 tcpserver 9997;
+#X msg -28 -207 client 1 test.txt;
+#X text 839 323 2009/02/24 Martin Peach;
+#X text 714 -253 [tcpserver] sends and receives bytes on [0...255]
+;
+#X text 262 -243 [tcpserver] waits for clients to connect to its port.
+;
+#X text -33 -228 send a file to client 1;
+#X msg 287 108 client 1 72 101 108 108 111 13 10;
+#X floatatom 562 212 9 0 0 0 - - -;
+#X obj 611 190 print status;
+#X obj 495 187 unpack 0 0;
+#X floatatom 523 235 5 0 0 0 - - -;
+#X text 453 235 to_client;
+#X msg 215 36 client;
+#X msg 192 13 client 1;
+#X text 260 12 get state of client 1;
+#X text 267 36 get sate of all clients;
+#X text 353 60 send (binary) 1 2 3 to client 1;
+#X obj 495 160 route sent client;
+#X floatatom 679 317 5 0 0 0 - - -;
+#X symbolatom 720 290 20 0 0 0 - - -;
+#X text 631 316 socket;
+#X text 697 289 ip;
+#X obj 639 266 unpack 0 0 s;
+#X floatatom 639 290 5 0 0 0 - - -;
+#X text 591 289 client;
+#X text 629 214 bytes;
+#X text 522 212 sent;
+#X connect 0 0 60 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 11 0 60 0;
+#X connect 12 0 60 0;
+#X connect 16 0 60 0;
+#X connect 18 0 40 0;
+#X connect 19 0 40 0;
+#X connect 20 0 40 0;
+#X connect 21 0 40 0;
+#X connect 22 0 40 0;
+#X connect 23 0 40 0;
+#X connect 24 0 40 0;
+#X connect 25 0 40 0;
+#X connect 26 0 40 0;
+#X connect 27 0 40 0;
+#X connect 28 0 40 0;
+#X connect 29 0 40 0;
+#X connect 30 0 40 0;
+#X connect 31 0 34 0;
+#X connect 32 0 31 0;
+#X connect 34 0 60 0;
+#X connect 35 0 60 0;
+#X connect 38 0 60 0;
+#X connect 39 0 60 0;
+#X connect 41 0 60 0;
+#X connect 42 0 43 1;
+#X connect 43 0 39 0;
+#X connect 44 0 43 0;
#X connect 45 0 46 1;
-#X connect 46 0 42 0;
+#X connect 46 0 38 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;
+#X connect 52 0 10 0;
+#X connect 53 0 52 1;
+#X connect 54 0 60 0;
+#X connect 55 0 54 0;
+#X connect 60 0 52 0;
+#X connect 60 1 1 0;
+#X connect 60 2 2 0;
+#X connect 60 3 3 0;
+#X connect 60 4 77 0;
+#X connect 61 0 60 0;
+#X connect 66 0 60 0;
+#X connect 69 0 70 0;
+#X connect 69 1 67 0;
+#X connect 72 0 60 0;
+#X connect 73 0 60 0;
+#X connect 77 0 69 0;
+#X connect 77 1 82 0;
+#X connect 77 2 68 0;
+#X connect 82 0 83 0;
+#X connect 82 1 78 0;
+#X connect 82 2 79 0;
|