#N canvas 104 267 1043 631 12;
#X obj 38 389 netsend;
#X msg 38 285 connect localhost 3000;
#X msg 47 367 send foo \$1;
#X floatatom 47 340 0 0 0 0 - - -;
#X msg 38 312 disconnect;
#X msg 249 363 send foo \$1;
#X msg 232 310 disconnect;
#X msg 232 285 connect localhost 3001;
#X floatatom 38 416 0 0 0 0 - - -;
#X floatatom 232 415 0 0 0 0 - - -;
#X text 197 9 Netsend -- send Pd messages over a network;
#X text 713 311 Close the connection;
#X obj 178 594 netreceive;
#X text 87 594 see also:;
#X obj 713 520 netsend 1;
#X text 798 519 (UDP);
#X text 62 552 An old (pre-0.45) calling convention is provided for
compatibility: a single float argument \, "0" or "1" for TCP or UDP
respectively:, f 69;
#X obj 232 388 netsend -u;
#X text 732 390 creation arguments:;
#X text 800 409 optional -u flag for UDP;
#X text 800 428 optional -b flag for binary;
#X floatatom 249 336 0 0 0 0 - - -;
#X text 670 337 Send messages to "foo" on remote machine;
#X text 89 264 TCP \, ascii;
#X text 307 261 UDP \, ascii;
#X msg 424 311 disconnect;
#X floatatom 424 416 0 0 0 0 - - -;
#X floatatom 441 337 0 0 0 0 - - -;
#X msg 441 364 send 1 2 3 \$1;
#X msg 424 286 connect localhost 3002;
#X msg 617 311 disconnect;
#X floatatom 617 416 0 0 0 0 - - -;
#X floatatom 634 337 0 0 0 0 - - -;
#X text 666 259 UDP \, binary;
#X msg 634 364 send 1 2 3 \$1;
#X obj 617 389 netsend -u -b;
#X text 473 259 TCP \, binary;
#X text 806 273 Connect to "localhost" port number, f 22;
#X obj 424 389 netsend -b;
#X msg 617 286 connect localhost 3003;
#X text 83 188 The Pd distribution includes "pdsend" and "pdreceive"
standalone programs that work with netsend/netreceive in ASCII mode.
, f 83;
#X text 85 27 The Netsend object connects to another machine over the
network for sending TCP ("stream") or UDP ("datagram") messages. An
outlet reports whether the connection is open or not. A connection
request should specify the name or IP address of the other host and
the port number. There should be a "netreceive" on the remote host
with a matching port number., f 83;
#X text 84 114 By default the messages are ASCII text messages compatible
with Pd (i.e. \, numbers and symbols terminated with a semicolon --
the "FUDI" protocol). The "-b" creation argument specifies binary messages
instead \, which appear in Pd as lists of numbers from 0 to 255 (You
could use this to send OSC messages \, for example.), f 83;
#X obj 81 426 print backward;
#X obj 477 422 print backward;
#X text 61 455 First outlet is nonzero if connection is open \, zero
otherwise., f 62;
#X obj 281 420 print backward;
#X obj 674 419 print backward;
#X text 754 592 updated for Pd version 0.47;
#X text 61 477 Second outlet outputs messages sent back from netreceive
object. In TCP mode this works for any established connection. In UDP
you have to send at least one message forward through the connection
for backward messages to find their way back., f 75;
#X connect 0 0 8 0;
#X connect 0 1 43 0;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 3 0 2 0;
#X connect 4 0 0 0;
#X connect 5 0 17 0;
#X connect 6 0 17 0;
#X connect 7 0 17 0;
#X connect 17 0 9 0;
#X connect 17 1 46 0;
#X connect 21 0 5 0;
#X connect 25 0 38 0;
#X connect 27 0 28 0;
#X connect 28 0 38 0;
#X connect 29 0 38 0;
#X connect 30 0 35 0;
#X connect 32 0 34 0;
#X connect 34 0 35 0;
#X connect 35 0 31 0;
#X connect 35 1 47 0;
#X connect 38 0 26 0;
#X connect 38 1 44 0;
#X connect 39 0 35 0;
