aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2006-11-07 21:57:30 +0000
committerMartin Peach <mrpeach@users.sourceforge.net>2006-11-07 21:57:30 +0000
commite48be2514b6f2646ae658222ab4dc1a31da678e5 (patch)
tree81050720adb03da8c5c691a817e728f8c7887869 /net
parentd2f2a4080dcd2da30fc7af1a0a241e5c26b3e9b5 (diff)
added send filename
svn path=/trunk/externals/mrpeach/; revision=6225
Diffstat (limited to 'net')
-rwxr-xr-xnet/tcpclient-help.pd155
-rwxr-xr-xnet/tcpsend-help.pd44
-rwxr-xr-xnet/tcpserver-help.pd155
-rwxr-xr-xnet/udpsend-help.pd44
4 files changed, 222 insertions, 176 deletions
diff --git a/net/tcpclient-help.pd b/net/tcpclient-help.pd
index 952ea84..e065c88 100755
--- a/net/tcpclient-help.pd
+++ b/net/tcpclient-help.pd
@@ -1,72 +1,83 @@
-#N canvas 89 21 1092 501 12;
-#X msg 61 93 disconnect;
-#X obj 78 222 unpack 0 0 0 0;
-#X floatatom 78 245 3 0 0 0 - - -;
-#X floatatom 113 245 3 0 0 0 - - -;
-#X floatatom 149 245 3 0 0 0 - - -;
-#X floatatom 185 245 3 0 0 0 - - -;
-#X text 35 244 from;
-#X msg 45 30 connect 132.205.142.12 80;
-#X obj 45 170 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 566 53 GET http:///index.html CRLF;
-#X obj 112 196 tgl 15 0 empty empty connected 18 7 0 8 -24198 -241291
--1 0 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 231 139 receive;
-#X msg 295 139 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 131 171 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 21 325 Received messages are output as a list of bytes;
-#X text 20 343 Attempting to print long messages output can hang pd!
-;
-#X text 343 132 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 -86 317 textfile;
-#X msg -86 213 clear;
-#X msg -67 285 write tcpclientreceived.txt;
-#X obj -73 254 prepend add;
-#X obj -86 186 loadbang;
-#X text 575 342 2006/05/12 Martin Peach;
-#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 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 34 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 31 0;
-#X connect 35 0 32 0;
+#N canvas 89 21 1096 505 12;
+#X msg 61 93 disconnect;
+#X obj 78 222 unpack 0 0 0 0;
+#X floatatom 78 245 3 0 0 0 - - -;
+#X floatatom 113 245 3 0 0 0 - - -;
+#X floatatom 149 245 3 0 0 0 - - -;
+#X floatatom 185 245 3 0 0 0 - - -;
+#X text 35 244 from;
+#X msg 45 30 connect 132.205.142.12 80;
+#X obj 45 170 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 508 53 GET http:///index.html CRLF;
+#X obj 112 196 tgl 15 0 empty empty connected 18 7 0 8 -24198 -241291
+-1 0 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 231 139 receive;
+#X msg 295 139 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 131 171 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 21 325 Received messages are output as a list of bytes;
+#X text 20 343 Attempting to print long messages output can hang pd!
+;
+#X text 343 132 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 -86 317 textfile;
+#X msg -86 213 clear;
+#X msg -67 285 write tcpclientreceived.txt;
+#X obj -73 254 prepend add;
+#X obj -86 186 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 781 8 send a file;
+#X text 843 50 ...any file;
+#X text 575 342 2006/11/07 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 34 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 31 0;
+#X connect 35 0 32 0;
+#X connect 39 0 8 0;
+#X connect 40 0 41 0;
+#X connect 41 0 8 0;
+#X connect 42 0 40 0;
diff --git a/net/tcpsend-help.pd b/net/tcpsend-help.pd
index e61a322..100c577 100755
--- a/net/tcpsend-help.pd
+++ b/net/tcpsend-help.pd
@@ -1,16 +1,28 @@
-#N canvas 0 0 555 316 12;
-#X msg 177 158 disconnect;
-#X msg 171 96 connect 127.0.0.1 9997;
-#X obj 171 207 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
-1;
-#X obj 171 184 tcpsend;
-#X text 375 97 <--first;
-#X msg 67 129 send 0 1 2 3;
-#X text 10 38 tcpsend sends bytes over a tcp connection.;
-#X text 10 61 Used in conjunction with packOSC will send OSC over tcp
-;
-#X text 236 259 Martin Peach 2006/04/21;
-#X connect 0 0 3 0;
-#X connect 1 0 3 0;
-#X connect 3 0 2 0;
-#X connect 5 0 3 0;
+#N canvas 407 433 559 320 12;
+#X msg 92 191 disconnect;
+#X msg 169 65 connect 127.0.0.1 9997;
+#X obj 60 253 tgl 15 0 empty empty connected 20 7 0 8 -24198 -241291
+-1 0 1;
+#X obj 60 230 tcpsend;
+#X text 373 66 <--first;
+#X msg 30 97 send 0 1 2 3;
+#X text 8 7 tcpsend sends bytes over a tcp connection.;
+#X text 8 30 Used in conjunction with packOSC will send OSC over tcp
+;
+#X msg 97 131 send ../doc/5.reference/test.txt;
+#X obj 340 175 openpanel;
+#X msg 340 199 send \$1;
+#X obj 340 156 bng 15 250 50 0 empty empty empty 17 7 0 10 -24198 -241291
+-1;
+#X text 363 130 send a file;
+#X text 422 174 ...any file;
+#X text 135 95 send raw data;
+#X text 291 260 Martin Peach 2006/11/07;
+#X connect 0 0 3 0;
+#X connect 1 0 3 0;
+#X connect 3 0 2 0;
+#X connect 5 0 3 0;
+#X connect 8 0 3 0;
+#X connect 9 0 10 0;
+#X connect 10 0 3 0;
+#X connect 11 0 9 0;
diff --git a/net/tcpserver-help.pd b/net/tcpserver-help.pd
index 33e4b13..6d2d7ad 100755
--- a/net/tcpserver-help.pd
+++ b/net/tcpserver-help.pd
@@ -1,72 +1,83 @@
-#N canvas 13 208 1115 644 12;
-#X msg 18 -6 print;
-#X obj 136 109 tcpserver 9997;
-#X floatatom 171 237 5 0 0 0 - - -;
-#X floatatom 286 191 5 0 0 0 - - -;
-#X obj 324 138 unpack 0 0 0 0;
-#X floatatom 324 161 3 0 0 0 - - -;
-#X floatatom 359 161 3 0 0 0 - - -;
-#X floatatom 395 161 3 0 0 0 - - -;
-#X floatatom 431 161 3 0 0 0 - - -;
-#X text 281 160 from;
-#X text 224 236 connections;
-#X obj 43 161 print received;
-#X msg 118 45 client 1 1 2 3;
-#X msg 86 20 broadcast 1 2 3;
-#X text 69 -6 list of connections;
-#X text 226 19 send to all clients;
-#X text 249 45 send to client 1;
-#X text 347 254 2006/05/11 Martin Peach;
-#X text 199 191 on socket;
-#X msg 140 71 send 504 1 2 3;
-#X text 273 71 send to client on socket 504;
-#X msg 564 -365 client 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
-18 19;
-#X msg 563 -340 client 1 20 21 22 23 24 25 26 27 28 29 30 31 32 33
-34 35 36 37 38 39;
-#X msg 563 -297 client 1 40 41 42 43 44 45 46 47 48 49 50 51 52 53
-54 55 56 57 58 59;
-#X msg 563 -255 client 1 60 61 62 63 64 65 66 67 68 69 70 71 72 73
-74 75 76 77 78 79;
-#X msg 561 -213 client 1 80 81 82 83 84 85 86 87 88 89 90 91 92 93
-94 95 96 97 98 99;
-#X msg 560 -170 client 1 100 101 102 103 104 105 106 107 108 109 110
-111 112 113 114 115 116 117 118 119;
-#X msg 559 -127 client 1 120 121 122 123 124 125 126 127 138 139 140
-141 142 143 144 145 146 147 148 149;
-#X msg 559 -84 client 1 150 151 152 153 154 155 156 157 158 159 160
-161 162 163 164 165 166 167 168 169;
-#X msg 559 -39 client 1 170 171 172 173 174 175 176 177 178 179 180
-181 182 183 184 185 186 187 188 189;
-#X msg 558 5 client 1 190 191 192 193 194 195 196 197 198 199 200 201
-202 203 204 205 206 207 208 209;
-#X msg 558 47 client 1 210 211 212 213 214 215 216 217 218 219 220
-221 222 223 224 225 226 227 228 229;
-#X msg 558 89 client 1 230 231 232 233 234 235 236 237 238 239 240
-241 242 243 244 245 246 247 248 249;
-#X msg 558 134 client 1 250 251 252 253 254 255;
-#X connect 0 0 1 0;
-#X connect 1 0 11 0;
-#X connect 1 1 2 0;
-#X connect 1 2 3 0;
-#X connect 1 3 4 0;
-#X connect 4 0 5 0;
-#X connect 4 1 6 0;
-#X connect 4 2 7 0;
-#X connect 4 3 8 0;
-#X connect 12 0 1 0;
-#X connect 13 0 1 0;
-#X connect 19 0 1 0;
-#X connect 21 0 1 0;
-#X connect 22 0 1 0;
-#X connect 23 0 1 0;
-#X connect 24 0 1 0;
-#X connect 25 0 1 0;
-#X connect 26 0 1 0;
-#X connect 27 0 1 0;
-#X connect 28 0 1 0;
-#X connect 29 0 1 0;
-#X connect 30 0 1 0;
-#X connect 31 0 1 0;
-#X connect 32 0 1 0;
-#X connect 33 0 1 0;
+#N canvas 268 239 1119 648 12;
+#X msg 18 -6 print;
+#X obj 136 109 tcpserver 9997;
+#X floatatom 171 237 5 0 0 0 - - -;
+#X floatatom 286 191 5 0 0 0 - - -;
+#X obj 324 138 unpack 0 0 0 0;
+#X floatatom 324 161 3 0 0 0 - - -;
+#X floatatom 359 161 3 0 0 0 - - -;
+#X floatatom 395 161 3 0 0 0 - - -;
+#X floatatom 431 161 3 0 0 0 - - -;
+#X text 281 160 from;
+#X text 224 236 connections;
+#X obj 43 161 print received;
+#X msg 118 45 client 1 1 2 3;
+#X msg 86 20 broadcast 1 2 3;
+#X text 69 -6 list of connections;
+#X text 226 19 send to all clients;
+#X text 249 45 send to client 1;
+#X text 347 254 2006/05/11 Martin Peach;
+#X text 199 191 on socket;
+#X msg 140 71 send 504 1 2 3;
+#X text 273 71 send to client on socket 504;
+#X msg 564 -365 client 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
+18 19;
+#X msg 563 -340 client 1 20 21 22 23 24 25 26 27 28 29 30 31 32 33
+34 35 36 37 38 39;
+#X msg 563 -297 client 1 40 41 42 43 44 45 46 47 48 49 50 51 52 53
+54 55 56 57 58 59;
+#X msg 563 -255 client 1 60 61 62 63 64 65 66 67 68 69 70 71 72 73
+74 75 76 77 78 79;
+#X msg 561 -213 client 1 80 81 82 83 84 85 86 87 88 89 90 91 92 93
+94 95 96 97 98 99;
+#X msg 560 -170 client 1 100 101 102 103 104 105 106 107 108 109 110
+111 112 113 114 115 116 117 118 119;
+#X msg 559 -127 client 1 120 121 122 123 124 125 126 127 138 139 140
+141 142 143 144 145 146 147 148 149;
+#X msg 559 -84 client 1 150 151 152 153 154 155 156 157 158 159 160
+161 162 163 164 165 166 167 168 169;
+#X msg 559 -39 client 1 170 171 172 173 174 175 176 177 178 179 180
+181 182 183 184 185 186 187 188 189;
+#X msg 558 5 client 1 190 191 192 193 194 195 196 197 198 199 200 201
+202 203 204 205 206 207 208 209;
+#X msg 558 47 client 1 210 211 212 213 214 215 216 217 218 219 220
+221 222 223 224 225 226 227 228 229;
+#X msg 558 89 client 1 230 231 232 233 234 235 236 237 238 239 240
+241 242 243 244 245 246 247 248 249;
+#X msg 558 134 client 1 250 251 252 253 254 255;
+#X obj 305 -219 openpanel;
+#X obj 305 -238 bng 15 250 50 0 empty empty empty 17 7 0 10 -24198
+-241291 -1;
+#X text 325 -262 send a file;
+#X text 387 -220 ...any file;
+#X msg 58 -261 client 1 ../doc/5.reference/test.txt;
+#X msg 305 -195 client 1 \$1;
+#X connect 0 0 1 0;
+#X connect 1 0 11 0;
+#X connect 1 1 2 0;
+#X connect 1 2 3 0;
+#X connect 1 3 4 0;
+#X connect 4 0 5 0;
+#X connect 4 1 6 0;
+#X connect 4 2 7 0;
+#X connect 4 3 8 0;
+#X connect 12 0 1 0;
+#X connect 13 0 1 0;
+#X connect 19 0 1 0;
+#X connect 21 0 1 0;
+#X connect 22 0 1 0;
+#X connect 23 0 1 0;
+#X connect 24 0 1 0;
+#X connect 25 0 1 0;
+#X connect 26 0 1 0;
+#X connect 27 0 1 0;
+#X connect 28 0 1 0;
+#X connect 29 0 1 0;
+#X connect 30 0 1 0;
+#X connect 31 0 1 0;
+#X connect 32 0 1 0;
+#X connect 33 0 1 0;
+#X connect 34 0 39 0;
+#X connect 35 0 34 0;
+#X connect 38 0 1 0;
+#X connect 39 0 1 0;
diff --git a/net/udpsend-help.pd b/net/udpsend-help.pd
index 629eace..0114bcb 100755
--- a/net/udpsend-help.pd
+++ b/net/udpsend-help.pd
@@ -1,16 +1,28 @@
-#N canvas 58 443 538 316 12;
-#X msg 177 158 disconnect;
-#X msg 171 96 connect 127.0.0.1 9997;
-#X obj 171 207 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
-1;
-#X text 375 97 <--first;
-#X msg 67 129 send 0 1 2 3;
-#X text 10 38 udpsend sends bytes over a udp connection.;
-#X text 10 61 Used in conjunction with packOSC will send OSC over udp
-;
-#X obj 171 184 udpsend;
-#X text 236 259 Martin Peach 2006/04/21;
-#X connect 0 0 7 0;
-#X connect 1 0 7 0;
-#X connect 4 0 7 0;
-#X connect 7 0 2 0;
+#N canvas 609 110 590 348 12;
+#X msg 145 161 disconnect;
+#X msg 169 63 connect 127.0.0.1 9997;
+#X obj 16 306 tgl 15 0 empty empty connected 20 7 0 8 -24198 -241291
+-1 1 1;
+#X text 373 64 <--first;
+#X msg 16 128 send 0 1 2 3;
+#X text 8 5 udpsend sends bytes over a udp connection.;
+#X text 8 28 Used in conjunction with packOSC will send OSC over udp
+;
+#X obj 16 283 udpsend;
+#X msg 186 93 send ../doc/5.reference/test.txt;
+#X obj 331 138 openpanel;
+#X msg 331 162 send \$1;
+#X obj 331 119 bng 15 250 50 0 empty empty empty 17 7 0 10 -24198 -241291
+-1;
+#X text 452 92 send a file;
+#X text 121 127 send raw data;
+#X text 413 137 ...any file;
+#X text 234 226 Martin Peach 2006/11/07;
+#X connect 0 0 7 0;
+#X connect 1 0 7 0;
+#X connect 4 0 7 0;
+#X connect 7 0 2 0;
+#X connect 8 0 7 0;
+#X connect 9 0 10 0;
+#X connect 10 0 7 0;
+#X connect 11 0 9 0;