From e64a72862122716a401062d128e37599d18a1897 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes Date: Thu, 3 Mar 2011 05:35:15 +0000 Subject: added META subpatch svn path=/trunk/externals/mrpeach/; revision=14999 --- net/tcpclient-help.pd | 21 ++- net/tcpreceive-help.pd | 56 ++++--- net/tcpsend-help.pd | 12 +- net/tcpserver-help.pd | 383 ++++++++++++++++++++++--------------------- net/udpreceive-help.pd | 14 +- net/udpsend-help.pd | 14 +- net/udpsend~-help.pd | 436 +++++++++++++++++++++++++------------------------ 7 files changed, 513 insertions(+), 423 deletions(-) (limited to 'net') diff --git a/net/tcpclient-help.pd b/net/tcpclient-help.pd index ff55c9a..23b182f 100644 --- a/net/tcpclient-help.pd +++ b/net/tcpclient-help.pd @@ -1,4 +1,4 @@ -#N canvas 184 70 1096 649 12; +#N canvas 1 53 1096 649 12; #X msg -112 56 disconnect; #X obj 219 439 unpack 0 0 0 0; #X floatatom 219 462 3 0 0 0 - - -; @@ -8,7 +8,7 @@ #X text 179 461 from; #X obj 199 387 tcpclient; #X obj 239 413 tgl 15 0 empty empty connected 18 7 0 8 -24198 -13381 --1 1 1; +-1 0 1; #X msg -88 80 dump \$1; #X obj -140 65 tgl 15 0 empty empty empty 0 -6 0 8 -4034 -13381 -1 0 1; @@ -43,7 +43,7 @@ be transmitted or received.; #X text 545 281 'send' prefix is optional; #X obj 199 514 spigot; #X obj 238 491 tgl 15 0 empty empty enable_print 18 7 0 8 -24198 -13381 --1 1 1; +-1 0 1; #X obj 199 543 print >>>; #X text 272 24 GET http:///index.phpCRLF; #X floatatom 374 483 9 0 0 0 - - -; @@ -73,6 +73,21 @@ be transmitted or received.; must be unblocked manually; #X text 444 482 Number of bytes sent; #X obj 474 433 print sender_blocked!; +#N canvas 529 268 494 344 META 0; +#X text 12 215 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan +Wilkes for Pd version 0.42.; +#X text 12 195 AUTHOR Martin Peach; +#X text 12 45 DESCRIPTION connect to a server and send and receive +messages as lists of bytes; +#X text 12 25 LICENSE GPL v2 or later; +#X text 12 85 INLET_0 list buf verbosity connect send disconnect dump +unblock; +#X text 12 115 OUTLET_0 list; +#X text 12 5 KEYWORDS control network; +#X text 12 135 OUTLET_1 list; +#X text 12 155 OUTLET_2 float; +#X text 12 175 OUTLET_3 sent buf blocked; +#X restore 733 551 pd META; #X connect 0 0 7 0; #X connect 1 0 2 0; #X connect 1 1 3 0; diff --git a/net/tcpreceive-help.pd b/net/tcpreceive-help.pd index 8cfbbe4..1941442 100644 --- a/net/tcpreceive-help.pd +++ b/net/tcpreceive-help.pd @@ -1,22 +1,34 @@ -#N canvas 713 11 478 294 12; -#X floatatom 206 144 3 0 0 0 - - -; -#X floatatom 233 144 3 0 0 0 - - -; -#X floatatom 260 144 3 0 0 0 - - -; -#X floatatom 287 144 3 0 0 0 - - -; -#X text 163 143 from; -#X obj 155 185 print message; -#X obj 155 57 tcpreceive 9997; -#X floatatom 257 96 5 0 0 0 - - -; -#X text 303 94 connections; -#X text 32 16 tcpreceive receives bytes over a tcp connection.; -#X floatatom 315 144 5 0 0 0 - - -; -#X obj 206 117 unpack 0 0 0 0 0; -#X text 265 235 Martin Peach 2008/11/05; -#X connect 6 0 5 0; -#X connect 6 1 11 0; -#X connect 6 2 7 0; -#X connect 11 0 0 0; -#X connect 11 1 1 0; -#X connect 11 2 2 0; -#X connect 11 3 3 0; -#X connect 11 4 10 0; +#N canvas 1 53 478 294 12; +#X floatatom 206 144 3 0 0 0 - - -; +#X floatatom 233 144 3 0 0 0 - - -; +#X floatatom 260 144 3 0 0 0 - - -; +#X floatatom 287 144 3 0 0 0 - - -; +#X text 163 143 from; +#X obj 155 185 print message; +#X obj 155 57 tcpreceive 9997; +#X floatatom 257 96 5 0 0 0 - - -; +#X text 303 94 connections; +#X text 32 16 tcpreceive receives bytes over a tcp connection.; +#X floatatom 315 144 5 0 0 0 - - -; +#X obj 206 117 unpack 0 0 0 0 0; +#X text 265 235 Martin Peach 2008/11/05; +#N canvas 529 268 494 344 META 0; +#X text 12 145 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan +Wilkes for Pd version 0.42.; +#X text 12 125 AUTHOR Martin Peach; +#X text 12 25 LICENSE GPL v2 or later; +#X text 12 5 KEYWORDS control network; +#X text 12 45 DESCRIPTION tcpreceive receives bytes over a tcp connection +; +#X text 12 65 OUTLET_0 anything; +#X text 12 85 OUTLET_1 list; +#X text 12 105 OUTLET_2 float; +#X restore 421 264 pd META; +#X connect 6 0 5 0; +#X connect 6 1 11 0; +#X connect 6 2 7 0; +#X connect 11 0 0 0; +#X connect 11 1 1 0; +#X connect 11 2 2 0; +#X connect 11 3 3 0; +#X connect 11 4 10 0; diff --git a/net/tcpsend-help.pd b/net/tcpsend-help.pd index 8b3ee6d..3f7a716 100644 --- a/net/tcpsend-help.pd +++ b/net/tcpsend-help.pd @@ -1,4 +1,4 @@ -#N canvas 0 94 559 320 12; +#N canvas 1 53 559 320 12; #X msg 85 175 disconnect; #X msg 13 59 connect 127.0.0.1 9997; #X obj 60 253 tgl 15 0 empty empty connected 20 7 0 8 -24198 -241291 @@ -20,6 +20,16 @@ #X text 137 134 'send' prefix is optional; #X msg 61 133 99 98 97; #X text 291 260 Martin Peach 2007/06/20; +#N canvas 507 340 494 344 META 0; +#X text 12 125 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan +Wilkes for Pd version 0.42.; +#X text 12 25 LICENSE GPL v2 or later; +#X text 12 105 AUTHOR Martin Peach; +#X text 12 45 DESCRIPTION send bytes over a tcp connection; +#X text 12 65 INLET_0 connect send list disconnect; +#X text 12 85 OUTLET_0 float; +#X text 12 5 KEYWORDS control network; +#X restore 490 290 pd META; #X connect 0 0 3 0; #X connect 1 0 3 0; #X connect 3 0 2 0; diff --git a/net/tcpserver-help.pd b/net/tcpserver-help.pd index b468492..097b785 100644 --- a/net/tcpserver-help.pd +++ b/net/tcpserver-help.pd @@ -1,184 +1,199 @@ -#N canvas 485 23 1284 779 12; -#X msg 39 -10 print; -#X floatatom 344 316 5 0 0 0 - - -; -#X floatatom 368 366 5 0 0 0 - - -; -#X obj 392 317 unpack 0 0 0 0; -#X floatatom 392 340 3 0 0 0 - - -; -#X floatatom 423 340 3 0 0 0 - - -; -#X floatatom 455 340 3 0 0 0 - - -; -#X floatatom 489 340 3 0 0 0 - - -; -#X text 349 339 from; -#X text 260 316 connections; -#X obj 321 441 print received; -#X msg 135 86 client 1 1 2 3; -#X msg 63 14 broadcast 1 2 3; -#X text 91 -9 list of connections; -#X text 186 14 send to all clients; -#X text 298 366 on socket; -#X msg -11 -60 send 504 1 2 3; -#X text 100 -65 send to client on socket 504; -#X msg 647 -209 client 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 -18 19; -#X msg 647 -186 client 1 20 21 22 23 24 25 26 27 28 29 30 31 32 33 -34 35 36 37 38 39; -#X msg 647 -148 client 1 40 41 42 43 44 45 46 47 48 49 50 51 52 53 -54 55 56 57 58 59; -#X msg 647 -110 client 1 60 61 62 63 64 65 66 67 68 69 70 71 72 73 -74 75 76 77 78 79; -#X msg 647 -72 client 1 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 -95 96 97 98 99; -#X msg 647 -34 client 1 100 101 102 103 104 105 106 107 108 109 110 -111 112 113 114 115 116 117 118 119; -#X msg 647 4 client 1 120 121 122 123 124 125 126 127 138 139 140 141 -142 143 144 145 146 147 148 149; -#X msg 647 42 client 1 150 151 152 153 154 155 156 157 158 159 160 -161 162 163 164 165 166 167 168 169; -#X msg 647 80 client 1 170 171 172 173 174 175 176 177 178 179 180 -181 182 183 184 185 186 187 188 189; -#X msg 647 118 client 1 190 191 192 193 194 195 196 197 198 199 200 -201 202 203 204 205 206 207 208 209; -#X msg 647 156 client 1 210 211 212 213 214 215 216 217 218 219 220 -221 222 223 224 225 226 227 228 229; -#X msg 647 194 client 1 230 231 232 233 234 235 236 237 238 239 240 -241 242 243 244 245 246 247 248 249; -#X msg 647 232 client 1 250 251 252 253 254 255; -#X obj 40 -177 openpanel; -#X obj 40 -196 bng 15 250 50 0 empty empty choose_a_file 17 7 0 10 --24198 -241291 -1; -#X text 24 -157 ...any file; -#X msg -108 -157 client 1 \$1; -#X msg 14 -35 10 1 2 43; -#X text 98 -48 'send' prefix is optional; -#X text 88 -31 (the first number is socket number); -#X msg -41 -90 disconnectsocket \$1; -#X msg -84 -133 disconnectclient \$1; -#X obj 647 257 s toserver; -#X obj 321 264 r toserver; -#X floatatom 143 -172 5 0 0 0 - - -; -#X obj 121 -153 f; -#X obj 121 -172 bng 15 250 50 0 empty empty empty 17 7 0 10 -258699 --241291 -1; -#X floatatom 185 -129 5 0 0 0 - - -; -#X obj 163 -110 f; -#X obj 163 -129 bng 15 250 50 0 empty empty empty 17 7 0 10 -258699 --241291 -1; -#X text -109 -110 disconnect by socket or client number; -#X text 428 291 argument is port number; -#X text -8 293 Received messages are output as lists of bytes; -#X text -69 397 ***WARNING*** Attempting to print long messages can -hang pd!; -#X obj 321 419 spigot; -#X obj 360 399 tgl 15 0 empty empty enable_print 17 7 0 10 -24198 -258699 --45076 0 1; -#X msg 159 110 dump \$1; -#X obj -17 95 tgl 15 0 empty empty enable_dump 17 7 0 10 -4034 -257985 --1 0 1; -#X text -85 45 dump received; -#X text -85 61 characters to main; -#X text -85 76 window in hexdump; -#X text -85 92 format:; -#X obj 321 292 tcpserver 9997; -#X msg -132 -181 client 1 test.txt; -#X text 647 -234 [tcpserver] sends and receives bytes on [0...255] -; -#X text 158 -217 [tcpserver] waits for clients to connect to its port. -; -#X text -137 -202 send a file to client 1; -#X msg 183 134 client 1 72 101 108 108 111 13 10; -#X floatatom 578 377 9 0 0 0 - - -; -#X obj 710 336 print status; -#X floatatom 538 400 5 0 0 0 - - -; -#X text 468 399 to_client; -#X msg 111 62 client; -#X msg 88 39 client 1; -#X text 156 38 get state of client 1; -#X text 249 86 send (binary) 1 2 3 to client 1; -#X floatatom 712 469 5 0 0 0 - - -; -#X symbolatom 744 442 20 0 0 0 - - -; -#X floatatom 681 442 5 0 0 0 - - -; -#X text 645 376 bytes; -#X text 538 376 sent; -#X msg 209 160 clientbuf 1 65536; -#X obj 681 418 unpack 0 0 s 0; -#X floatatom 776 490 7 0 0 0 - - -; -#X text 621 490 length of send buffer:; -#X text 661 468 socket:; -#X text 630 441 client:; -#X text 721 441 ip:; -#X text 339 159 set send-buffer size for client 1; -#X text 163 62 get state of all clients (list on right outlet); -#X obj 538 351 unpack 0 0 0; -#X floatatom 619 418 5 0 0 0 - - -; -#X text 549 417 on_socket; -#X msg 233 184 send; -#X msg 258 209 1156; -#X text 276 183 output 'client' message for all sockets; -#X text 298 209 output 'client' message for socket 1156; -#X msg 283 234 unblock; -#X obj 538 312 route sent client blocked; -#X text -143 233 If sending too many messages blocks the system \, -tcpserver will stop sending until it receives an unblock message; -#X obj 652 359 print blocked; -#X text -69 476 2010/03/27 Martin Peach; -#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 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 38 0; -#X connect 47 0 46 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 96 0; -#X connect 61 0 60 0; -#X connect 65 0 60 0; -#X connect 70 0 60 0; -#X connect 71 0 60 0; -#X connect 79 0 60 0; -#X connect 80 0 76 0; -#X connect 80 1 74 0; -#X connect 80 2 75 0; -#X connect 80 3 81 0; -#X connect 88 0 68 0; -#X connect 88 1 66 0; -#X connect 88 2 89 0; -#X connect 91 0 60 0; -#X connect 92 0 60 0; -#X connect 95 0 60 0; -#X connect 96 0 88 0; -#X connect 96 1 80 0; -#X connect 96 2 98 0; -#X connect 96 3 67 0; +#N canvas 1 53 1284 779 12; +#X msg 39 -10 print; +#X floatatom 344 316 5 0 0 0 - - -; +#X floatatom 368 366 5 0 0 0 - - -; +#X obj 392 317 unpack 0 0 0 0; +#X floatatom 392 340 3 0 0 0 - - -; +#X floatatom 423 340 3 0 0 0 - - -; +#X floatatom 455 340 3 0 0 0 - - -; +#X floatatom 489 340 3 0 0 0 - - -; +#X text 349 339 from; +#X text 260 316 connections; +#X obj 321 441 print received; +#X msg 135 86 client 1 1 2 3; +#X msg 63 14 broadcast 1 2 3; +#X text 91 -9 list of connections; +#X text 186 14 send to all clients; +#X text 298 366 on socket; +#X msg -11 -60 send 504 1 2 3; +#X text 100 -65 send to client on socket 504; +#X msg 647 -209 client 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 +18 19; +#X msg 647 -186 client 1 20 21 22 23 24 25 26 27 28 29 30 31 32 33 +34 35 36 37 38 39; +#X msg 647 -148 client 1 40 41 42 43 44 45 46 47 48 49 50 51 52 53 +54 55 56 57 58 59; +#X msg 647 -110 client 1 60 61 62 63 64 65 66 67 68 69 70 71 72 73 +74 75 76 77 78 79; +#X msg 647 -72 client 1 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 +95 96 97 98 99; +#X msg 647 -34 client 1 100 101 102 103 104 105 106 107 108 109 110 +111 112 113 114 115 116 117 118 119; +#X msg 647 4 client 1 120 121 122 123 124 125 126 127 138 139 140 141 +142 143 144 145 146 147 148 149; +#X msg 647 42 client 1 150 151 152 153 154 155 156 157 158 159 160 +161 162 163 164 165 166 167 168 169; +#X msg 647 80 client 1 170 171 172 173 174 175 176 177 178 179 180 +181 182 183 184 185 186 187 188 189; +#X msg 647 118 client 1 190 191 192 193 194 195 196 197 198 199 200 +201 202 203 204 205 206 207 208 209; +#X msg 647 156 client 1 210 211 212 213 214 215 216 217 218 219 220 +221 222 223 224 225 226 227 228 229; +#X msg 647 194 client 1 230 231 232 233 234 235 236 237 238 239 240 +241 242 243 244 245 246 247 248 249; +#X msg 647 232 client 1 250 251 252 253 254 255; +#X obj 40 -177 openpanel; +#X obj 40 -196 bng 15 250 50 0 empty empty choose_a_file 17 7 0 10 +-24198 -241291 -1; +#X text 24 -157 ...any file; +#X msg -108 -157 client 1 \$1; +#X msg 14 -35 10 1 2 43; +#X text 98 -48 'send' prefix is optional; +#X text 88 -31 (the first number is socket number); +#X msg -41 -90 disconnectsocket \$1; +#X msg -84 -133 disconnectclient \$1; +#X obj 647 257 s toserver; +#X obj 321 264 r toserver; +#X floatatom 143 -172 5 0 0 0 - - -; +#X obj 121 -153 f; +#X obj 121 -172 bng 15 250 50 0 empty empty empty 17 7 0 10 -258699 +-241291 -1; +#X floatatom 185 -129 5 0 0 0 - - -; +#X obj 163 -110 f; +#X obj 163 -129 bng 15 250 50 0 empty empty empty 17 7 0 10 -258699 +-241291 -1; +#X text -109 -110 disconnect by socket or client number; +#X text 428 291 argument is port number; +#X text -8 293 Received messages are output as lists of bytes; +#X text -69 397 ***WARNING*** Attempting to print long messages can +hang pd!; +#X obj 321 419 spigot; +#X obj 360 399 tgl 15 0 empty empty enable_print 17 7 0 10 -24198 -258699 +-45076 0 1; +#X msg 159 110 dump \$1; +#X obj -17 95 tgl 15 0 empty empty enable_dump 17 7 0 10 -4034 -257985 +-1 0 1; +#X text -85 45 dump received; +#X text -85 61 characters to main; +#X text -85 76 window in hexdump; +#X text -85 92 format:; +#X obj 321 292 tcpserver 9997; +#X msg -132 -181 client 1 test.txt; +#X text 647 -234 [tcpserver] sends and receives bytes on [0...255] +; +#X text 158 -217 [tcpserver] waits for clients to connect to its port. +; +#X text -137 -202 send a file to client 1; +#X msg 183 134 client 1 72 101 108 108 111 13 10; +#X floatatom 578 377 9 0 0 0 - - -; +#X obj 710 336 print status; +#X floatatom 538 400 5 0 0 0 - - -; +#X text 468 399 to_client; +#X msg 111 62 client; +#X msg 88 39 client 1; +#X text 156 38 get state of client 1; +#X text 249 86 send (binary) 1 2 3 to client 1; +#X floatatom 712 469 5 0 0 0 - - -; +#X symbolatom 744 442 20 0 0 0 - - -; +#X floatatom 681 442 5 0 0 0 - - -; +#X text 645 376 bytes; +#X text 538 376 sent; +#X msg 209 160 clientbuf 1 65536; +#X obj 681 418 unpack 0 0 s 0; +#X floatatom 776 490 7 0 0 0 - - -; +#X text 621 490 length of send buffer:; +#X text 661 468 socket:; +#X text 630 441 client:; +#X text 721 441 ip:; +#X text 339 159 set send-buffer size for client 1; +#X text 163 62 get state of all clients (list on right outlet); +#X obj 538 351 unpack 0 0 0; +#X floatatom 619 418 5 0 0 0 - - -; +#X text 549 417 on_socket; +#X msg 233 184 send; +#X msg 258 209 1156; +#X text 276 183 output 'client' message for all sockets; +#X text 298 209 output 'client' message for socket 1156; +#X msg 283 234 unblock; +#X obj 538 312 route sent client blocked; +#X text -143 233 If sending too many messages blocks the system \, +tcpserver will stop sending until it receives an unblock message; +#X obj 652 359 print blocked; +#X text -69 476 2010/03/27 Martin Peach; +#N canvas 529 82 494 344 META 0; +#X text 12 225 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan +Wilkes for Pd version 0.42.; +#X text 12 205 AUTHOR Martin Peach; +#X text 12 25 LICENSE GPL v2 or later; +#X text 12 5 KEYWORDS control network; +#X text 12 45 DESCRIPTION wait for clients to connect to its port; +#X text 12 65 INLET_0 float list client disconnectclient disconnectsocket +send print broadcast dump clientbuf unblock; +#X text 12 105 OUTLET_0 anything; +#X text 12 125 OUTLET_1 float; +#X text 12 145 OUTLET_2 float; +#X text 12 165 OUTLET_3 list; +#X text 12 185 OUTLET_4 sent client blocked; +#X restore 839 398 pd META; +#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 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 38 0; +#X connect 47 0 46 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 96 0; +#X connect 61 0 60 0; +#X connect 65 0 60 0; +#X connect 70 0 60 0; +#X connect 71 0 60 0; +#X connect 79 0 60 0; +#X connect 80 0 76 0; +#X connect 80 1 74 0; +#X connect 80 2 75 0; +#X connect 80 3 81 0; +#X connect 88 0 68 0; +#X connect 88 1 66 0; +#X connect 88 2 89 0; +#X connect 91 0 60 0; +#X connect 92 0 60 0; +#X connect 95 0 60 0; +#X connect 96 0 88 0; +#X connect 96 1 80 0; +#X connect 96 2 98 0; +#X connect 96 3 67 0; diff --git a/net/udpreceive-help.pd b/net/udpreceive-help.pd index 5bded46..1c608bb 100644 --- a/net/udpreceive-help.pd +++ b/net/udpreceive-help.pd @@ -1,4 +1,4 @@ -#N canvas 238 314 742 409 12; +#N canvas 1 53 742 431 12; #X floatatom 414 304 3 0 0 0 - - -; #X floatatom 441 304 3 0 0 0 - - -; #X floatatom 468 304 3 0 0 0 - - -; @@ -30,6 +30,18 @@ to use multicasting; #X text 486 360 Martin Peach 2010/10/15; #X text -12 3 [udpreceive] receives datagrams over a udp connection and outputs them as raw bytes.; +#N canvas 529 53 494 344 META 0; +#X text 12 155 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan +Wilkes for Pd version 0.42.; +#X text 12 25 LICENSE GPL v2 or later; +#X text 12 135 AUTHOR Martin Peach; +#X text 12 5 KEYWORDS control network; +#X text 12 45 DESCRIPTION receive datagrams over a udp connection and +outputs them as raw bytes; +#X text 12 75 INLET_0 status port; +#X text 12 95 OUTLET_0 anything; +#X text 12 115 OUTLET_1 received total from multicast; +#X restore 657 396 pd META; #X connect 4 0 17 0; #X connect 4 1 20 0; #X connect 6 0 0 0; diff --git a/net/udpsend-help.pd b/net/udpsend-help.pd index 41b38a0..16bed9e 100644 --- a/net/udpsend-help.pd +++ b/net/udpsend-help.pd @@ -1,4 +1,4 @@ -#N canvas 355 70 898 550 12; +#N canvas 1 53 898 550 12; #X msg 198 118 disconnect; #X msg 17 -63 connect 127.0.0.1 9997; #X obj 455 418 tgl 15 0 empty empty connected 20 7 0 8 -24198 -241291 @@ -39,6 +39,18 @@ udp; #X obj 425 323 tgl 15 0 empty empty empty 20 7 0 8 -24198 -241291 -1 0 1; #X text 236 321 enable multicast loopback:; +#N canvas 529 111 494 344 META 0; +#X text 12 155 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan +Wilkes for Pd version 0.42.; +#X text 12 25 LICENSE GPL v2 or later; +#X text 12 135 AUTHOR Martin Peach; +#X text 12 5 KEYWORDS control network; +#X text 12 115 OUTLET_0 float; +#X text 12 45 DESCRIPTION used in conjunction with packOSC - will send +OSC over udp; +#X text 12 75 INLET_0 connect send list disconnect multicast_interface +multicast_ttl multicast_loopback; +#X restore 798 452 pd META; #X connect 0 0 6 0; #X connect 1 0 6 0; #X connect 3 0 6 0; diff --git a/net/udpsend~-help.pd b/net/udpsend~-help.pd index 29c4164..e38e128 100644 --- a/net/udpsend~-help.pd +++ b/net/udpsend~-help.pd @@ -1,211 +1,225 @@ -#N canvas 289 56 785 803 10; -#X obj -178 225 osc~ 440; -#X msg -398 60 disconnect; -#X msg -353 105 format float; -#X msg -332 126 format 16bit; -#X msg -311 147 format 8bit; -#X msg -440 18 connect localhost 8008; -#X text -244 103 float is the most expensive with the best resolution -(32bit) \, default is 16bit; -#X msg -419 39 connect 255.255.255.255 8008; -#X obj 52 687 print udpreceive~; -#X obj 224 369 print udpsend~; -#X obj -178 320 tgl 15 0 empty empty empty 17 7 0 10 -4034 -1 -1 1 -1; -#X symbolatom -97 435 10 0 0 0 - - -; -#X floatatom -44 369 5 0 0 0 - - -; -#X floatatom 10 391 9 0 0 0 - - -; -#X floatatom 63 411 9 0 0 0 - - -; -#X symbolatom 117 390 10 0 0 0 - - -; -#X obj -97 411 prepend set; -#X obj 117 367 prepend set; -#X text -102 368 channels:; -#X text -144 442 format:; -#X text 13 411 bitrate:; -#X text -51 391 framesize:; -#X text 98 389 to:; -#X msg -216 242 info; -#X symbolatom -293 774 10 0 0 0 - - -; -#X floatatom -259 708 5 0 0 0 - - -; -#X floatatom -224 687 7 0 0 0 - - -; -#X floatatom -190 752 9 0 0 0 - - -; -#X obj -293 733 prepend set; -#X text -323 707 channels:; -#X text -339 773 format:; -#X text -239 751 bitrate:; -#X text -288 686 framesize:; -#X floatatom -155 709 9 0 0 0 - - -; -#X floatatom -121 687 9 0 0 0 - - -; -#X floatatom -86 730 5 0 0 0 - - -; -#X floatatom -52 709 5 0 0 0 - - -; -#X text -212 708 overflow:; -#X text -181 686 underflow:; -#X text -147 729 queuesize:; -#X text -100 708 average:; -#X msg -435 478 info; -#X text -237 34 broadcast to everybody on your local subnet listening -on the specified port; -#X msg -455 458 reset; -#X text -402 477 status info to rightmost outlet; -#X text -415 241 status info to rightmost outlet; -#X text -417 457 reset underflow & overflow counters; -#X floatatom -260 589 3 0 0 0 - - -; -#X floatatom -237 589 3 0 0 0 - - -; -#X floatatom -214 589 3 0 0 0 - - -; -#X floatatom -191 589 3 0 0 0 - - -; -#X floatatom -167 589 5 0 0 0 - - -; -#X obj -260 563 unpack 0 0 0 0 0; -#X text -297 588 from:; -#X obj -179 268 *~; -#X floatatom -164 150 5 0 0 0 - - -; -#X text -66 148 Framesize = (blocksize) X (number of channels) X (bytes -per sample); -#X obj -97 339 route format channels framesize bitrate ipaddr vecsize -; -#X floatatom 170 430 9 0 0 0 - - -; -#X text 70 430 dsp vector size:; -#X msg -258 200 channels \$1; -#X obj -412 185 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -4034 -1 --1 2; -#X obj -178 297 udpsend~ 2 512; -#X text -88 296 sends 2 dsp-channels using 512-sample blocks; -#X obj -388 572 dac~ 1 2; -#X text 68 448 (blocksize must be a multiple of this); -#X text -160 318 1 = transmitting; -#X obj -97 246 noise~; -#X obj -98 268 *~; -#X obj -164 170 / 100; -#X text -455 343 Based on: [netreceive~] and [netsend~]by Olaf Matthes -; -#X floatatom -17 752 9 0 0 0 - - -; -#X text -69 751 packets:; -#X text -50 177 Default blocksize is 2048 The number of samples per -block must be an integer multiple of the number of samples in one signal -vector.; -#X text -28 225 Arguments: (1st required \, 2nd optional) 1:number -of channels to send. 2:blocksize = number of samples per channel per -frame. (Blocksize of sender and receiver must be the same.); -#X text -122 562 To communicate \, a [udpreceive~] and [udpsend~] pair -must have the same number of channels and the same blocksize. Also -[udpsend~] must [connect( to the port on which [udpreceive~] is listening. -; -#X text -329 59 stop transmitting; -#X text -355 76 format defines the resolution of the sent signal and -may be changed on-the-fly; -#X text -450 200 number of channels to transmit; -#X msg -414 499 buffer 2; -#X text -352 498 set number of frames to buffer before playback; -#X text -458 368 [udpsend~] transmits dsp vectors ("audio") via UDP. -UDP is a connectionless protocol \, so [udpsend~] will transmit even -if nothing is receiving.; -#X text -299 18 connect to and begin transmitting -; -#X text -456 313 [udpreceive~] and [udpsend~]; -#X text -249 540 receives 2 channels on port 8008 Same blocksize as -udpsend~; -#X floatatom -412 216 5 0 0 0 - - -; -#X obj -288 172 tgl 15 0 empty empty toggle_connection 17 7 0 10 -4034 --1 -1 0 1; -#X obj -293 650 route format channels framesize bitrate overflow underflow -queuesize average packets tag_errors; -#X floatatom 17 730 9 0 0 0 - - -; -#X text -49 729 tag errors:; -#X obj -326 601 env~; -#X floatatom -326 624 9 0 0 0 - - -; -#X text -266 613 The rightmost signal outlet outputs 1 if the stream -is valid \, else 0; -#N canvas 335 200 657 334 multicast 0; -#X msg 91 87 multicast_interface 192.168.0.88; -#X msg 66 62 multicast_interface eth1; -#X text 229 13 send to a multicast address; -#X text 201 38 specify an interface to use with multicast; -#X msg 43 39 multicast_interface 1; -#X text 251 61 by index \, name or address; -#X floatatom 183 112 5 0 256 0 - - -; -#X obj 165 135 f 1; -#X obj 165 115 bng 15 250 50 0 empty empty empty 17 7 0 10 -4034 -1 --1; -#X text 17 136 set multicast ttl:; -#X msg 165 161 multicast_ttl \$1; -#X msg 215 211 multicast_loopback \$1; -#X obj 215 189 tgl 15 0 empty empty empty 20 7 0 8 -24198 -241291 -1 -1 1; -#X text 26 187 enable multicast loopback:; -#X obj 244 257 outlet; -#X msg 18 14 connect 239.200.200.200 8008; -#X text 262 278 [udpreceive~ 8008 2 512 239.200.200.200]; -#X text -70 278 Will be received by any udpreceive~ declared like this: -; -#X text 347 295 (2 and 512 may be changed); -#X connect 0 0 14 0; -#X connect 1 0 14 0; -#X connect 4 0 14 0; -#X connect 6 0 7 1; -#X connect 7 0 10 0; -#X connect 8 0 7 0; -#X connect 10 0 14 0; -#X connect 11 0 14 0; -#X connect 12 0 11 0; -#X connect 15 0 14 0; -#X restore -347 280 pd multicast; -#X obj -389 541 udpreceive~ 8008 2 512; -#X text -50 497 Arguments: port \, channels \, blocksize \, multicast_address. -Blocksize should match [udpsend~]. multicast_address is optional. Arguments -must be in that order.; -#X text -455 328 Author: Martin Peach 2010/10/28; -#X connect 0 0 54 0; -#X connect 1 0 62 0; -#X connect 2 0 62 0; -#X connect 3 0 62 0; -#X connect 4 0 62 0; -#X connect 5 0 62 0; -#X connect 7 0 62 0; -#X connect 16 0 11 0; -#X connect 17 0 15 0; -#X connect 23 0 62 0; -#X connect 28 0 24 0; -#X connect 41 0 94 0; -#X connect 43 0 94 0; -#X connect 52 0 47 0; -#X connect 52 1 48 0; -#X connect 52 2 49 0; -#X connect 52 3 50 0; -#X connect 52 4 51 0; -#X connect 54 0 62 0; -#X connect 55 0 69 0; -#X connect 57 0 16 0; -#X connect 57 1 12 0; -#X connect 57 2 13 0; -#X connect 57 3 14 0; -#X connect 57 4 17 0; -#X connect 57 5 58 0; -#X connect 57 6 9 0; -#X connect 60 0 62 0; -#X connect 61 0 60 0; -#X connect 61 0 85 0; -#X connect 62 0 10 0; -#X connect 62 1 57 0; -#X connect 67 0 68 0; -#X connect 68 0 62 1; -#X connect 69 0 54 1; -#X connect 69 0 68 1; -#X connect 79 0 94 0; -#X connect 86 0 62 0; -#X connect 87 0 28 0; -#X connect 87 1 25 0; -#X connect 87 2 26 0; -#X connect 87 3 27 0; -#X connect 87 4 33 0; -#X connect 87 5 34 0; -#X connect 87 6 35 0; -#X connect 87 7 36 0; -#X connect 87 8 71 0; -#X connect 87 9 88 0; -#X connect 87 10 8 0; -#X connect 90 0 91 0; -#X connect 93 0 62 0; -#X connect 94 0 64 0; -#X connect 94 1 64 1; -#X connect 94 2 90 0; -#X connect 94 3 87 0; -#X connect 94 4 52 0; +#N canvas 1 53 785 621 10; +#X obj -178 225 osc~ 440; +#X msg -398 60 disconnect; +#X msg -353 105 format float; +#X msg -332 126 format 16bit; +#X msg -311 147 format 8bit; +#X msg -440 18 connect localhost 8008; +#X text -244 103 float is the most expensive with the best resolution +(32bit) \, default is 16bit; +#X msg -419 39 connect 255.255.255.255 8008; +#X obj 52 687 print udpreceive~; +#X obj 224 369 print udpsend~; +#X obj -178 320 tgl 15 0 empty empty empty 17 7 0 10 -4034 -1 -1 0 +1; +#X symbolatom -97 435 10 0 0 0 - - -; +#X floatatom -44 369 5 0 0 0 - - -; +#X floatatom 10 391 9 0 0 0 - - -; +#X floatatom 63 411 9 0 0 0 - - -; +#X symbolatom 117 390 10 0 0 0 - - -; +#X obj -97 411 prepend set; +#X obj 117 367 prepend set; +#X text -102 368 channels:; +#X text -144 442 format:; +#X text 13 411 bitrate:; +#X text -51 391 framesize:; +#X text 98 389 to:; +#X msg -216 242 info; +#X symbolatom -293 774 10 0 0 0 - - -; +#X floatatom -259 708 5 0 0 0 - - -; +#X floatatom -224 687 7 0 0 0 - - -; +#X floatatom -190 752 9 0 0 0 - - -; +#X obj -293 733 prepend set; +#X text -323 707 channels:; +#X text -339 773 format:; +#X text -239 751 bitrate:; +#X text -288 686 framesize:; +#X floatatom -155 709 9 0 0 0 - - -; +#X floatatom -121 687 9 0 0 0 - - -; +#X floatatom -86 730 5 0 0 0 - - -; +#X floatatom -52 709 5 0 0 0 - - -; +#X text -212 708 overflow:; +#X text -181 686 underflow:; +#X text -147 729 queuesize:; +#X text -100 708 average:; +#X msg -435 478 info; +#X text -237 34 broadcast to everybody on your local subnet listening +on the specified port; +#X msg -455 458 reset; +#X text -402 477 status info to rightmost outlet; +#X text -415 241 status info to rightmost outlet; +#X text -417 457 reset underflow & overflow counters; +#X floatatom -260 589 3 0 0 0 - - -; +#X floatatom -237 589 3 0 0 0 - - -; +#X floatatom -214 589 3 0 0 0 - - -; +#X floatatom -191 589 3 0 0 0 - - -; +#X floatatom -167 589 5 0 0 0 - - -; +#X obj -260 563 unpack 0 0 0 0 0; +#X text -297 588 from:; +#X obj -179 268 *~; +#X floatatom -124 150 5 0 0 0 - - -; +#X text -66 148 Framesize = (blocksize) X (number of channels) X (bytes +per sample); +#X obj -97 339 route format channels framesize bitrate ipaddr vecsize +; +#X floatatom 170 430 9 0 0 0 - - -; +#X text 70 430 dsp vector size:; +#X msg -258 200 channels \$1; +#X obj -412 185 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -4034 -1 +-1 0; +#X obj -178 297 udpsend~ 2 512; +#X text -88 296 sends 2 dsp-channels using 512-sample blocks; +#X obj -388 572 dac~ 1 2; +#X text 68 448 (blocksize must be a multiple of this); +#X text -160 318 1 = transmitting; +#X obj -97 246 noise~; +#X obj -98 268 *~; +#X obj -124 170 / 100; +#X text -455 343 Based on: [netreceive~] and [netsend~]by Olaf Matthes +; +#X floatatom -17 752 9 0 0 0 - - -; +#X text -69 751 packets:; +#X text -50 177 Default blocksize is 2048 The number of samples per +block must be an integer multiple of the number of samples in one signal +vector.; +#X text -28 225 Arguments: (1st required \, 2nd optional) 1:number +of channels to send. 2:blocksize = number of samples per channel per +frame. (Blocksize of sender and receiver must be the same.); +#X text -122 562 To communicate \, a [udpreceive~] and [udpsend~] pair +must have the same number of channels and the same blocksize. Also +[udpsend~] must [connect( to the port on which [udpreceive~] is listening. +; +#X text -329 59 stop transmitting; +#X text -355 76 format defines the resolution of the sent signal and +may be changed on-the-fly; +#X text -450 200 number of channels to transmit; +#X msg -414 499 buffer 2; +#X text -352 498 set number of frames to buffer before playback; +#X text -458 368 [udpsend~] transmits dsp vectors ("audio") via UDP. +UDP is a connectionless protocol \, so [udpsend~] will transmit even +if nothing is receiving.; +#X text -299 18 connect to and begin transmitting +; +#X text -456 313 [udpreceive~] and [udpsend~]; +#X text -249 540 receives 2 channels on port 8008 Same blocksize as +udpsend~; +#X floatatom -412 216 5 0 0 0 - - -; +#X obj -288 172 tgl 15 0 empty empty toggle_connection 17 7 0 10 -4034 +-1 -1 0 1; +#X obj -293 650 route format channels framesize bitrate overflow underflow +queuesize average packets tag_errors; +#X floatatom 17 730 9 0 0 0 - - -; +#X text -49 729 tag errors:; +#X obj -326 601 env~; +#X floatatom -326 624 9 0 0 0 - - -; +#X text -266 613 The rightmost signal outlet outputs 1 if the stream +is valid \, else 0; +#N canvas 27 271 657 334 multicast 0; +#X msg 91 87 multicast_interface 192.168.0.88; +#X msg 66 62 multicast_interface eth1; +#X text 229 13 send to a multicast address; +#X text 201 38 specify an interface to use with multicast; +#X msg 43 39 multicast_interface 1; +#X text 251 61 by index \, name or address; +#X floatatom 183 112 5 0 256 0 - - -; +#X obj 165 135 f 1; +#X obj 165 115 bng 15 250 50 0 empty empty empty 17 7 0 10 -4034 -1 +-1; +#X text 17 136 set multicast ttl:; +#X msg 165 161 multicast_ttl \$1; +#X msg 215 211 multicast_loopback \$1; +#X obj 215 189 tgl 15 0 empty empty empty 20 7 0 8 -24198 -241291 -1 +0 1; +#X text 26 187 enable multicast loopback:; +#X obj 244 257 outlet; +#X msg 18 14 connect 239.200.200.200 8008; +#X text 262 278 [udpreceive~ 8008 2 512 239.200.200.200]; +#X text -70 278 Will be received by any udpreceive~ declared like this: +; +#X text 347 295 (2 and 512 may be changed); +#X connect 0 0 14 0; +#X connect 1 0 14 0; +#X connect 4 0 14 0; +#X connect 6 0 7 1; +#X connect 7 0 10 0; +#X connect 8 0 7 0; +#X connect 10 0 14 0; +#X connect 11 0 14 0; +#X connect 12 0 11 0; +#X connect 15 0 14 0; +#X restore -347 280 pd multicast; +#X obj -389 541 udpreceive~ 8008 2 512; +#X text -50 497 Arguments: port \, channels \, blocksize \, multicast_address. +Blocksize should match [udpsend~]. multicast_address is optional. Arguments +must be in that order.; +#X text -455 328 Author: Martin Peach 2010/10/28; +#N canvas 529 111 494 344 META 0; +#X text 12 175 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan +Wilkes for Pd version 0.42.; +#X text 12 25 LICENSE GPL v2 or later; +#X text 12 155 AUTHOR Martin Peach; +#X text 12 5 KEYWORDS control network; +#X text 12 45 DESCRIPTION transmit dsp vectors ("audio") via UDP; +#X text 12 65 INLET_0 signal connect disconnect format channels info +multicast_interface multicast_ttl multicast_loopback; +#X text 12 95 INLET_1 signal; +#X text 12 115 OUTLET_0 float; +#X text 12 135 OUTLET_1 format channels framesize bitrate ipaddr vecsize +; +#X restore 248 760 pd META; +#X connect 0 0 54 0; +#X connect 1 0 62 0; +#X connect 2 0 62 0; +#X connect 3 0 62 0; +#X connect 4 0 62 0; +#X connect 5 0 62 0; +#X connect 7 0 62 0; +#X connect 16 0 11 0; +#X connect 17 0 15 0; +#X connect 23 0 62 0; +#X connect 28 0 24 0; +#X connect 41 0 94 0; +#X connect 43 0 94 0; +#X connect 52 0 47 0; +#X connect 52 1 48 0; +#X connect 52 2 49 0; +#X connect 52 3 50 0; +#X connect 52 4 51 0; +#X connect 54 0 62 0; +#X connect 55 0 69 0; +#X connect 57 0 16 0; +#X connect 57 1 12 0; +#X connect 57 2 13 0; +#X connect 57 3 14 0; +#X connect 57 4 17 0; +#X connect 57 5 58 0; +#X connect 57 6 9 0; +#X connect 60 0 62 0; +#X connect 61 0 60 0; +#X connect 61 0 85 0; +#X connect 62 0 10 0; +#X connect 62 1 57 0; +#X connect 67 0 68 0; +#X connect 68 0 62 1; +#X connect 69 0 54 1; +#X connect 69 0 68 1; +#X connect 79 0 94 0; +#X connect 86 0 62 0; +#X connect 87 0 28 0; +#X connect 87 1 25 0; +#X connect 87 2 26 0; +#X connect 87 3 27 0; +#X connect 87 4 33 0; +#X connect 87 5 34 0; +#X connect 87 6 35 0; +#X connect 87 7 36 0; +#X connect 87 8 71 0; +#X connect 87 9 88 0; +#X connect 87 10 8 0; +#X connect 90 0 91 0; +#X connect 93 0 62 0; +#X connect 94 0 64 0; +#X connect 94 1 64 1; +#X connect 94 2 90 0; +#X connect 94 3 87 0; +#X connect 94 4 52 0; -- cgit v1.2.1