aboutsummaryrefslogtreecommitdiff
path: root/net/tcpclient-help.pd
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2009-03-04 22:33:05 +0000
committerMartin Peach <mrpeach@users.sourceforge.net>2009-03-04 22:33:05 +0000
commited3f143edde18f4fc3781293c50e25ca843320db (patch)
treead5a0e1032fe7e22db48c5a1d145b0e1556941cb /net/tcpclient-help.pd
parent82bbe8f6a428edcabd1e6fe04b2d4ab34be395a9 (diff)
Changed send routine to send one byte at a time and output number of bytes sent, so it won't block if the other end disappears. Also settable buffer size.
Help path updated. svn path=/trunk/externals/mrpeach/; revision=10835
Diffstat (limited to 'net/tcpclient-help.pd')
-rw-r--r--net/tcpclient-help.pd52
1 files changed, 33 insertions, 19 deletions
diff --git a/net/tcpclient-help.pd b/net/tcpclient-help.pd
index 53c8523..360bb04 100644
--- a/net/tcpclient-help.pd
+++ b/net/tcpclient-help.pd
@@ -1,15 +1,15 @@
-#N canvas 162 3 1096 608 12;
+#N canvas 349 7 1096 608 12;
#X msg -112 56 disconnect;
-#X obj 160 370 unpack 0 0 0 0;
-#X floatatom 160 393 3 0 0 0 - - -;
-#X floatatom 191 393 3 0 0 0 - - -;
-#X floatatom 223 393 3 0 0 0 - - -;
-#X floatatom 255 393 3 0 0 0 - - -;
-#X text 120 392 from;
+#X obj 186 406 unpack 0 0 0 0;
+#X floatatom 186 429 3 0 0 0 - - -;
+#X floatatom 217 429 3 0 0 0 - - -;
+#X floatatom 249 429 3 0 0 0 - - -;
+#X floatatom 281 429 3 0 0 0 - - -;
+#X text 146 428 from;
#X msg -175 -7 connect 132.205.142.12 80;
-#X obj 130 318 tcpclient;
-#X obj 190 344 tgl 15 0 empty empty connected 18 7 0 8 -24198 -241291
--1 0 1;
+#X obj 166 354 tcpclient;
+#X obj 206 380 tgl 15 0 empty empty connected 18 7 0 8 -24198 -241291
+-1 1 1;
#X msg -88 80 dump \$1;
#X obj -140 65 tgl 15 0 empty empty empty 0 -6 0 8 -4034 -257985 -1
1 1;
@@ -19,7 +19,7 @@
#X msg -200 -32 connect www.concordia.ca 80;
#X text -17 79 print received messages to main window in hexdump format
;
-#X text 201 317 tcpclient opens a tcp socket to send and receive bytes
+#X text 237 353 tcpclient opens a tcp socket to send and receive bytes
on;
#X text -217 305 See also:;
#X obj -212 329 netclient;
@@ -27,8 +27,8 @@ on;
#X obj -212 352 tcpreceive;
#X text -214 374 can receive messages from tcpclient;
#X text -136 328 is what tcpclient is based on;
-#X text 181 444 Received messages are output as a list of bytes;
-#X text 202 476 Attempting to print long messages output can hang pd!
+#X text 217 480 Received messages are output as a list of bytes;
+#X text 238 509 Attempting to print long messages output can hang pd!
;
#X text 77 176 get any received data (not useful unless you need it
faster than once per 20ms);
@@ -50,14 +50,23 @@ be transmitted or received.;
#X msg 99 251 71 69 84 32 104 116 116 112 58 47 47 47 105 110 100 101
120 46 104 116 109 108 13 10;
#X text 529 257 'send' prefix is optional;
-#X obj 130 445 spigot;
-#X obj 169 422 tgl 15 0 empty empty enable_print 18 7 0 8 -24198 -241291
--1 1 1;
-#X obj 130 474 print >>>;
-#X text -213 475 2009/02/24 Martin Peach;
+#X obj 166 481 spigot;
+#X obj 205 458 tgl 15 0 empty empty enable_print 18 7 0 8 -24198 -241291
+-1 0 1;
+#X obj 166 510 print >>>;
#X msg -136 16 send 71 69 84 32 104 116 116 112 58 47 47 47 105 110
100 101 120 46 112 104 112 13 10;
#X text 272 24 GET http:///index.phpCRLF;
+#X floatatom 341 400 9 0 0 0 - - -;
+#X text 197 291 set send-buffer size;
+#X obj 341 374 route sent buf;
+#X floatatom 388 424 9 0 0 0 - - -;
+#X text 458 423 Size of the send buffer;
+#X text 415 399 Number of bytes sent (may still be in buffer);
+#X msg 147 315 buf;
+#X text 177 314 get send-buffer size;
+#X text -213 475 2009/03/04 Martin Peach;
+#X msg 123 291 buf 10;
#X connect 0 0 8 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
@@ -67,6 +76,7 @@ be transmitted or received.;
#X connect 8 0 40 0;
#X connect 8 1 1 0;
#X connect 8 2 9 0;
+#X connect 8 3 47 0;
#X connect 10 0 8 0;
#X connect 11 0 10 0;
#X connect 12 0 8 0;
@@ -81,4 +91,8 @@ be transmitted or received.;
#X connect 38 0 8 0;
#X connect 40 0 42 0;
#X connect 41 0 40 1;
-#X connect 44 0 8 0;
+#X connect 43 0 8 0;
+#X connect 47 0 45 0;
+#X connect 47 1 48 0;
+#X connect 51 0 8 0;
+#X connect 54 0 8 0;