tcpclient-help.pd 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. #N canvas 1 53 1096 649 12;
  2. #X msg -112 56 disconnect;
  3. #X obj 219 439 unpack 0 0 0 0;
  4. #X floatatom 219 462 3 0 0 0 - - -;
  5. #X floatatom 250 462 3 0 0 0 - - -;
  6. #X floatatom 282 462 3 0 0 0 - - -;
  7. #X floatatom 314 462 3 0 0 0 - - -;
  8. #X text 179 461 from;
  9. #X obj 199 387 tcpclient;
  10. #X obj 239 413 tgl 15 0 empty empty connected 18 7 0 8 -24198 -13381
  11. -1 0 1;
  12. #X msg -88 80 dump \$1;
  13. #X obj -140 65 tgl 15 0 empty empty empty 0 -6 0 8 -4034 -13381 -1
  14. 0 1;
  15. #X text -59 -58 connect with an IP address and port number;
  16. #X msg -200 -32 connect www.concordia.ca 80;
  17. #X text -17 79 print received messages to main window in hexdump format
  18. ;
  19. #X text 270 386 tcpclient opens a tcp socket to send and receive bytes
  20. on;
  21. #X text -217 305 See also:;
  22. #X obj -212 329 netclient;
  23. #X msg -225 -57 connect 127.0.0.1 9997;
  24. #X obj -212 352 tcpreceive;
  25. #X text -214 374 can receive messages from tcpclient;
  26. #X text -136 328 is what tcpclient is based on;
  27. #X text 250 513 Received messages are output as a list of bytes;
  28. #X msg 83 251 send 49 127 128 51 59;
  29. #X obj -84 352 tcpserver;
  30. #X text -118 351 and;
  31. #X text 347 -55 tcpclient can connect to a server and send and receive
  32. messages as lists of bytes. Any integer value between 0 and 255 can
  33. be transmitted or received.;
  34. #X msg -63 105 send examples/test.txt;
  35. #X obj -15 129 openpanel;
  36. #X msg -15 153 send \$1;
  37. #X obj -101 114 bng 15 250 50 0 empty empty empty 17 7 0 10 -4034 -13381
  38. -1;
  39. #X text 172 105 send a file;
  40. #X text 62 128 ...any file;
  41. #X msg 122 274 71 69 84 32 104 116 116 112 58 47 47 47 105 110 100
  42. 101 120 46 104 116 109 108 13 10;
  43. #X text 545 281 'send' prefix is optional;
  44. #X obj 199 514 spigot;
  45. #X obj 238 491 tgl 15 0 empty empty enable_print 18 7 0 8 -24198 -13381
  46. -1 0 1;
  47. #X obj 199 543 print >>>;
  48. #X text 272 24 GET http:///index.phpCRLF;
  49. #X floatatom 374 483 9 0 0 0 - - -;
  50. #X text 196 314 set send-buffer size;
  51. #X floatatom 424 457 9 0 0 0 - - -;
  52. #X text 493 456 Size of the send buffer;
  53. #X msg 170 338 buf;
  54. #X text 200 337 get send-buffer size;
  55. #X msg 146 314 buf 10;
  56. #X msg 194 362 verbosity \$1;
  57. #X obj 139 347 tgl 15 1 empty empty empty 0 -6 0 8 -4034 -13381 -1
  58. 0 1;
  59. #X text 289 362 print connection status messages to main window (default)
  60. ;
  61. #X msg -136 16 send 71 69 84 32 104 116 116 112 58 47 47 47 105 110
  62. 100 101 120 46 112 104 112 13 10 13 10;
  63. #X text 271 542 Attempting to print long messages can hang Pd!;
  64. #X msg 11 179 unblock;
  65. #X obj 374 407 route sent buf blocked;
  66. #X text -208 540 2010/03/26 Martin Peach;
  67. #X msg -175 -7 connect 132.205.142.11 9997;
  68. #X msg -34 207 hello \;;
  69. #X obj 59 227 str to_list;
  70. #X text 158 225 semicolon-terminated strings for netserver or netreceive
  71. ;
  72. #X text 73 175 if the tcpclient sender blocks for any reason \, it
  73. must be unblocked manually;
  74. #X text 444 482 Number of bytes sent;
  75. #X obj 474 433 print sender_blocked!;
  76. #N canvas 529 268 494 344 META 0;
  77. #X text 12 215 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
  78. Wilkes for Pd version 0.42.;
  79. #X text 12 195 AUTHOR Martin Peach;
  80. #X text 12 45 DESCRIPTION connect to a server and send and receive
  81. messages as lists of bytes;
  82. #X text 12 25 LICENSE GPL v2 or later;
  83. #X text 12 85 INLET_0 list buf verbosity connect send disconnect dump
  84. unblock;
  85. #X text 12 115 OUTLET_0 list;
  86. #X text 12 5 KEYWORDS control network;
  87. #X text 12 135 OUTLET_1 list;
  88. #X text 12 155 OUTLET_2 float;
  89. #X text 12 175 OUTLET_3 sent buf blocked;
  90. #X restore 733 551 pd META;
  91. #X connect 0 0 7 0;
  92. #X connect 1 0 2 0;
  93. #X connect 1 1 3 0;
  94. #X connect 1 2 4 0;
  95. #X connect 1 3 5 0;
  96. #X connect 7 0 34 0;
  97. #X connect 7 1 1 0;
  98. #X connect 7 2 8 0;
  99. #X connect 7 3 51 0;
  100. #X connect 9 0 7 0;
  101. #X connect 10 0 9 0;
  102. #X connect 12 0 7 0;
  103. #X connect 17 0 7 0;
  104. #X connect 22 0 7 0;
  105. #X connect 26 0 7 0;
  106. #X connect 27 0 28 0;
  107. #X connect 28 0 7 0;
  108. #X connect 29 0 27 0;
  109. #X connect 32 0 7 0;
  110. #X connect 34 0 36 0;
  111. #X connect 35 0 34 1;
  112. #X connect 42 0 7 0;
  113. #X connect 44 0 7 0;
  114. #X connect 45 0 7 0;
  115. #X connect 46 0 45 0;
  116. #X connect 48 0 7 0;
  117. #X connect 50 0 7 0;
  118. #X connect 51 0 38 0;
  119. #X connect 51 1 40 0;
  120. #X connect 51 2 59 0;
  121. #X connect 53 0 7 0;
  122. #X connect 54 0 55 0;
  123. #X connect 55 0 7 0;