From f628926f7ff2d494667bc14bc5d0cbcba02de5db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 1 Sep 2015 14:30:10 +0000 Subject: allow setting of local port svn path=/trunk/externals/iem/iemnet/; revision=17544 --- udpclient-help.pd | 71 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 38 insertions(+), 33 deletions(-) (limited to 'udpclient-help.pd') diff --git a/udpclient-help.pd b/udpclient-help.pd index 18e6d3c..6cf60a6 100644 --- a/udpclient-help.pd +++ b/udpclient-help.pd @@ -1,35 +1,35 @@ -#N canvas 0 34 988 533 12; -#X msg 96 97 disconnect; -#X floatatom 255 351 3 0 0 0 - - -; -#X floatatom 284 351 3 0 0 0 - - -; -#X floatatom 311 351 3 0 0 0 - - -; -#X floatatom 336 351 3 0 0 0 - - -; +#N canvas 4 49 1100 592 12; +#X msg 116 117 disconnect; +#X floatatom 255 351 3 0 0 0 - - -, f 3; +#X floatatom 284 351 3 0 0 0 - - -, f 3; +#X floatatom 311 351 3 0 0 0 - - -, f 3; +#X floatatom 336 351 3 0 0 0 - - -, f 3; #X text 219 351 from; #X obj 275 307 tgl 15 0 empty empty connected 18 7 0 8 -24198 -241291 --1 1 1; -#X text 187 21 connect with an IP address and port number; +-1 0 1; +#X text 197 21 connect with an IP address and port number; #X text 44 257 See also:; #X msg 21 22 connect 127.0.0.1 9997; -#X text 364 156 semicolon-terminated string for netserver or netreceive +#X text 414 176 semicolon-terminated string for netserver or netreceive ; -#X text 302 182 'send' prefix is optional; +#X text 322 202 'send' prefix is optional; #X obj 235 412 spigot; #X obj 274 389 tgl 15 0 empty empty enable_print 18 7 0 8 -24198 -241291 --1 1 1; -#X floatatom 772 190 9 0 0 0 - - -; +-1 0 1; +#X floatatom 872 280 9 0 0 0 - - -, f 9; #X text 40 399 2010/03/01 Martin Peach; -#X text 418 440 Attempting to print long messages can hang Pd!; -#X obj 772 166 route sent; -#X text 844 190 sent bytes; -#X floatatom 772 347 3 0 0 0 - - -; -#X floatatom 826 347 3 0 0 0 - - -; -#X floatatom 799 347 3 0 0 0 - - -; -#X obj 772 268 route address; -#X obj 772 296 unpack f f f f f; -#X floatatom 853 347 3 0 0 0 - - -; -#X floatatom 881 321 6 0 0 0 - - -; -#X text 879 347 ip; -#X text 927 320 port; +#X text 438 440 Attempting to print long messages can hang Pd!; +#X obj 872 256 route sent; +#X text 944 280 sent bytes; +#X floatatom 872 437 3 0 0 0 - - -, f 3; +#X floatatom 926 437 3 0 0 0 - - -, f 3; +#X floatatom 899 437 3 0 0 0 - - -, f 3; +#X obj 872 358 route address; +#X obj 872 386 unpack f f f f f; +#X floatatom 953 437 3 0 0 0 - - -, f 3; +#X floatatom 981 411 6 0 0 0 - - -, f 6; +#X text 979 437 ip; +#X text 1027 430 port; #X obj 520 344 spigot; #X obj 559 321 tgl 15 0 empty empty enable_print 18 7 0 8 -24198 -241291 -1 0 1; @@ -43,21 +43,25 @@ net objects. all information is available via outlet#4 as well!; #X obj 235 441 print udpclient:received; #X obj 520 373 print udpclient:status; #X obj 255 328 unpack f f f f f; -#X floatatom 364 351 6 0 0 0 - - -; -#X msg 128 129 send 47 116 101 115 116 32 104 101 108 108 111 10; -#X msg 156 157 send 51 49 32 97 98 99 59 10; -#X text 482 128 /test hello (OSC message); -#X text 308 255 udpclient can be used for a bi-directional connection +#X floatatom 364 351 6 0 0 0 - - -, f 6; +#X msg 148 149 send 47 116 101 115 116 32 104 101 108 108 111 10; +#X msg 176 177 send 51 49 32 97 98 99 59 10; +#X text 552 148 /test hello (OSC message); +#X text 312 255 udpclient can be used for a bi-directional connection ; -#X msg 183 184 97 98 99 100 10; +#X msg 203 204 97 98 99 100 10; #X msg 47 48 connect swisstime.ethz.ch 13; -#X text 527 14 udpclient can connect to a server and send and receive +#X text 547 14 udpclient 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 obj 295 281 s \$0.udpclient.o4; #X obj 520 298 r \$0.udpclient.o4; -#X obj 772 142 r \$0.udpclient.o4; -#X obj 772 242 r \$0.udpclient.o4; +#X obj 872 232 r \$0.udpclient.o4; +#X obj 872 332 r \$0.udpclient.o4; +#X msg 74 75 connect 127.0.0.1 7999 7999; +#X text 303 67 optional second argument to set the local port (where +we receive the returning messages) \; default is to choose any available +port.; #X connect 0 0 35 0; #X connect 9 0 35 0; #X connect 12 0 36 0; @@ -87,3 +91,4 @@ be transmitted or received.; #X connect 48 0 28 0; #X connect 49 0 17 0; #X connect 50 0 22 0; +#X connect 51 0 35 0; -- cgit v1.2.1