#N canvas 114 128 1141 655 12;
#X obj 38 426 netsend;
#X msg 38 266 connect localhost 3000;
#X msg 47 404 send foo \$1;
#X floatatom 47 377 0 0 0 0 - - -;
#X msg 38 349 disconnect;
#X msg 249 400 send foo \$1;
#X msg 232 347 disconnect;
#X msg 232 266 connect localhost 3001;
#X floatatom 38 453 0 0 0 0 - - -;
#X floatatom 232 452 0 0 0 0 - - -;
#X text 197 9 Netsend -- send Pd messages over a network;
#X text 713 348 Close the connection;
#X obj 178 631 netreceive;
#X text 87 631 see also:;
#X obj 713 557 netsend 1;
#X text 798 556 (UDP);
#X text 62 589 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 425 netsend -u;
#X text 732 427 creation arguments:;
#X text 800 446 optional -u flag for UDP;
#X text 800 465 optional -b flag for binary;
#X floatatom 249 373 0 0 0 0 - - -;
#X text 670 374 Send messages to "foo" on remote machine;
#X text 89 245 TCP \, ascii;
#X text 307 242 UDP \, ascii;
#X msg 424 348 disconnect;
#X floatatom 424 453 0 0 0 0 - - -;
#X floatatom 441 374 0 0 0 0 - - -;
#X msg 441 401 send 1 2 3 \$1;
#X msg 424 267 connect localhost 3002;
#X msg 617 348 disconnect;
#X floatatom 617 453 0 0 0 0 - - -;
#X floatatom 634 374 0 0 0 0 - - -;
#X text 666 240 UDP \, binary;
#X msg 634 401 send 1 2 3 \$1;
#X obj 617 426 netsend -u -b;
#X text 473 240 TCP \, binary;
#X text 808 257 Connect to "localhost" port number, f 22;
#X obj 424 426 netsend -b;
#X msg 617 267 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 463 print backward;
#X obj 477 459 print backward;
#X text 61 492 First outlet is nonzero if connection is open \, zero
otherwise., f 62;
#X obj 281 457 print backward;
#X obj 674 456 print backward;
#X text 754 629 updated for Pd version 0.47;
#X text 61 514 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 msg 637 309 connect localhost 3003 3010;
#X text 867 295 an additional port argument;
#X text 869 327 messages sent back from receiver;
#X text 867 311 specifies port number for;
#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;
#X connect 50 0 30 0;
