From 3daaf117c33ebf2bc596324faafbb7962ac27c2c Mon Sep 17 00:00:00 2001 From: Roman Haefeli Date: Sat, 2 Oct 2010 20:34:19 +0000 Subject: updated help of [tcpsend]/[tcpreceive] to reflect their current behaviour svn path=/trunk/externals/iem/iemnet/; revision=14187 --- tcpclient-help.pd | 29 +++++++++++---------- tcpreceive-help.pd | 74 +++++++++++++++++++++++++++++++++++++++++++----------- tcpsend-help.pd | 45 ++++++++++++--------------------- tcpserver-help.pd | 5 ++-- 4 files changed, 92 insertions(+), 61 deletions(-) diff --git a/tcpclient-help.pd b/tcpclient-help.pd index d5a08ca..f262f4d 100644 --- a/tcpclient-help.pd +++ b/tcpclient-help.pd @@ -35,7 +35,6 @@ be transmitted or received.; 100 101 120 46 112 104 112 13 10 13 10; #X text 40 399 2010/03/01 Martin Peach; #X text 418 430 Attempting to print long messages can hang Pd!; -#X text 40 415 2010/10/02 Roman Haefeli; #X obj 295 281 s \$0.tcpclient.o3; #X obj 797 166 route sent; #X text 869 190 sent bytes; @@ -67,23 +66,23 @@ be transmitted or received.; #X connect 8 0 22 0; #X connect 8 1 1 0; #X connect 8 2 9 0; -#X connect 8 3 29 0; +#X connect 8 3 28 0; #X connect 11 0 8 0; #X connect 14 0 8 0; #X connect 17 0 8 0; #X connect 20 0 8 0; -#X connect 22 0 43 0; +#X connect 22 0 42 0; #X connect 23 0 22 1; #X connect 25 0 8 0; -#X connect 30 0 24 0; -#X connect 32 0 30 0; -#X connect 36 0 37 0; -#X connect 37 0 33 0; -#X connect 37 1 35 0; -#X connect 37 2 34 0; -#X connect 37 3 38 0; -#X connect 37 4 39 0; -#X connect 42 0 36 0; -#X connect 44 0 47 0; -#X connect 45 0 44 1; -#X connect 46 0 44 0; +#X connect 29 0 24 0; +#X connect 31 0 29 0; +#X connect 35 0 36 0; +#X connect 36 0 32 0; +#X connect 36 1 34 0; +#X connect 36 2 33 0; +#X connect 36 3 37 0; +#X connect 36 4 38 0; +#X connect 41 0 35 0; +#X connect 43 0 46 0; +#X connect 44 0 43 1; +#X connect 45 0 43 0; diff --git a/tcpreceive-help.pd b/tcpreceive-help.pd index 12c3a12..28e2a2c 100644 --- a/tcpreceive-help.pd +++ b/tcpreceive-help.pd @@ -1,14 +1,60 @@ -#N canvas 546 11 478 294 12; -#X obj 47 185 print message; -#X obj 47 97 tcpreceive 9997; -#X text 32 16 tcpreceive receives bytes over a tcp connection.; -#X obj 179 119 print status; -#X obj 91 164 print from; -#X obj 135 141 print #connections; -#X msg 47 71 port 10000; -#X text 196 260 IOhannes m zmölnig 2010/03/31; -#X connect 1 0 0 0; -#X connect 1 1 4 0; -#X connect 1 2 5 0; -#X connect 1 3 3 0; -#X connect 6 0 1 0; +#N canvas 162 172 680 297 12; +#X obj 20 85 tcpreceive 9997; +#X text 10 10 tcpreceive receives bytes over a tcp connection.; +#X msg 20 49 port 10000; +#X text 134 84 1st argument: port number; +#X text 102 48 reset port number; +#X floatatom 54 218 3 0 0 0 - - -; +#X floatatom 108 218 3 0 0 0 - - -; +#X floatatom 81 218 3 0 0 0 - - -; +#X obj 54 167 unpack f f f f f; +#X floatatom 135 218 3 0 0 0 - - -; +#X floatatom 163 192 6 0 0 0 - - -; +#X text 161 218 ip; +#X text 209 192 port; +#X text 178 168 from; +#X obj 20 250 print tcpreceive:received; +#X floatatom 88 140 3 0 0 0 - - -; +#X text 114 140 connections; +#X obj 122 117 s \$0.tcpreceive.o3; +#X obj 253 222 spigot; +#X obj 292 202 tgl 15 0 empty empty enable_print 17 7 0 10 -24198 -258699 +-45076 1 1; +#X obj 253 177 r \$0.tcpreceive.o3; +#X obj 253 248 print tcpreceive:status; +#X floatatom 483 121 3 0 0 0 - - -; +#X floatatom 537 121 3 0 0 0 - - -; +#X floatatom 510 121 3 0 0 0 - - -; +#X obj 483 41 route address; +#X obj 483 70 unpack f f f f f; +#X floatatom 564 121 3 0 0 0 - - -; +#X floatatom 592 95 6 0 0 0 - - -; +#X text 590 121 ip; +#X text 638 95 port; +#X obj 483 15 r \$0.tcpreceive.o3; +#X obj 483 165 r \$0.tcpreceive.o3; +#X obj 483 191 route port; +#X floatatom 483 217 6 0 0 0 - - -; +#X text 532 217 port; +#X connect 0 0 14 0; +#X connect 0 1 8 0; +#X connect 0 2 15 0; +#X connect 0 3 17 0; +#X connect 2 0 0 0; +#X connect 8 0 5 0; +#X connect 8 1 7 0; +#X connect 8 2 6 0; +#X connect 8 3 9 0; +#X connect 8 4 10 0; +#X connect 18 0 21 0; +#X connect 19 0 18 1; +#X connect 20 0 18 0; +#X connect 25 0 26 0; +#X connect 26 0 22 0; +#X connect 26 1 24 0; +#X connect 26 2 23 0; +#X connect 26 3 27 0; +#X connect 26 4 28 0; +#X connect 31 0 25 0; +#X connect 32 0 33 0; +#X connect 33 0 34 0; diff --git a/tcpsend-help.pd b/tcpsend-help.pd index 8b3ee6d..b9e55a2 100644 --- a/tcpsend-help.pd +++ b/tcpsend-help.pd @@ -1,31 +1,18 @@ -#N canvas 0 94 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 +#N canvas 0 92 506 250 12; +#X msg 109 130 disconnect; +#X obj 145 209 tgl 15 0 empty empty connected 20 7 0 8 -24198 -241291 -1 0 1; -#X obj 60 230 tcpsend; -#X text 217 60 <--first; -#X msg 32 83 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 50 106 send ../doc/5.reference/test.txt; -#X obj 385 144 openpanel; -#X msg 385 168 send \$1; -#X obj 385 125 bng 15 250 50 0 empty empty empty 17 7 0 10 -24198 -241291 --1; -#X text 344 105 send a file; -#X text 407 124 ...any file; -#X text 148 84 send raw data; -#X text 137 134 'send' prefix is optional; -#X msg 61 133 99 98 97; -#X text 291 260 Martin Peach 2007/06/20; -#X connect 0 0 3 0; -#X connect 1 0 3 0; +#X obj 145 186 tcpsend; +#X msg 47 68 send 0 1 2 3; +#X text 14 7 tcpsend sends bytes over a tcp connection.; +#X text 142 68 send raw data; +#X text 140 97 'send' prefix is optional; +#X msg 75 96 99 98 97; +#X text 181 35 <--first connect; +#X text 289 173 2007/06/20 Martin Peach; +#X msg 15 36 connect 127.0.0.1 9997; +#X connect 0 0 2 0; +#X connect 2 0 1 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; -#X connect 16 0 3 0; +#X connect 7 0 2 0; +#X connect 10 0 2 0; diff --git a/tcpserver-help.pd b/tcpserver-help.pd index 30ca6e9..6016ab6 100644 --- a/tcpserver-help.pd +++ b/tcpserver-help.pd @@ -26,7 +26,7 @@ hang pd!; #X obj 295 540 spigot; #X obj 334 520 tgl 15 0 empty empty enable_print 17 7 0 10 -24198 -258699 --45076 1 1; +-45076 0 1; #X obj 295 376 tcpserver 9997; #X text 21 6 [tcpserver] waits for clients to connect to its port. ; @@ -58,7 +58,7 @@ hang pd!; #X obj 524 493 r \$0.tcpserver.o4; #X obj 524 538 spigot; #X obj 563 518 tgl 15 0 empty empty enable_print 17 7 0 10 -24198 -258699 --45076 1 1; +-45076 0 1; #X obj 524 564 print tcpserver:status; #X text 242 153 disconnect by socket number; #X text 915 251 port; @@ -88,7 +88,6 @@ hang pd!; #X text 918 595 port; #X text 809 482 socket; #X text 20 585 2009/04/08 Martin Peach; -#X text 20 599 2010/10/02 Roman Haefeli; #X connect 8 0 24 0; #X connect 12 0 24 0; #X connect 13 0 24 0; -- cgit v1.2.1