From bc78751467c86bbb07344d505617beeef9cd27b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 6 Oct 2010 20:06:21 +0000 Subject: more iemnet specifics svn path=/trunk/externals/iem/iemnet/; revision=14202 --- tcpserver-help.pd | 312 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 178 insertions(+), 134 deletions(-) (limited to 'tcpserver-help.pd') diff --git a/tcpserver-help.pd b/tcpserver-help.pd index 7c2e80a..f2f98b3 100644 --- a/tcpserver-help.pd +++ b/tcpserver-help.pd @@ -1,143 +1,187 @@ -#N canvas 0 0 996 665 12; -#X floatatom 318 409 5 0 0 0 - - -; -#X floatatom 342 439 5 0 0 0 - - -; -#X floatatom 366 489 3 0 0 0 - - -; -#X floatatom 397 489 3 0 0 0 - - -; -#X floatatom 429 489 3 0 0 0 - - -; -#X floatatom 461 490 3 0 0 0 - - -; -#X text 329 488 from; -#X text 234 409 connections; -#X msg 149 210 broadcast 1 2 3; -#X text 272 210 send to all clients; -#X text 272 439 on socket; -#X text 233 183 send to client on socket 504; +#N canvas 3 45 996 552 12; +#X floatatom 118 299 5 0 0 0 - - -; +#X floatatom 142 329 5 0 0 0 - - -; +#X floatatom 166 379 3 0 0 0 - - -; +#X floatatom 197 379 3 0 0 0 - - -; +#X floatatom 229 379 3 0 0 0 - - -; +#X floatatom 261 380 3 0 0 0 - - -; +#X text 129 378 from; +#X text 34 299 connections; +#X msg 209 110 broadcast 1 2 3; +#X text 326 108 send to all clients; +#X text 72 329 on socket; +#X text 202 265 argument is port number; +#X text 92 490 ***WARNING*** Attempting to print long messages can +hang pd!; +#X obj 95 430 spigot; +#X obj 134 410 tgl 15 0 empty empty enable_print 17 7 0 10 -24198 -258699 +-45076 0 1; +#X obj 95 266 tcpserver 9997; +#X text 21 6 [tcpserver] waits for clients to connect to its port. +; +#X text 94 473 Received messages are output as stream of bytes; +#X obj 95 453 print tcpserver:received; +#X msg 234 135 11 216 43; +#X obj 190 293 s \$0.tcpserver.o4; +#X obj 324 383 r \$0.tcpserver.o4; +#X obj 324 428 spigot; +#X obj 363 408 tgl 15 0 empty empty enable_print 17 7 0 10 -24198 -258699 +-45076 0 1; +#X obj 324 454 print tcpserver:status; +#X obj 166 356 unpack f f f f; +#N canvas 3 45 450 300 per.socket 1; +#X obj 93 254 outlet; #X msg 93 154 disconnectsocket \$1; -#X msg 20 81 disconnectclient \$1; -#X floatatom 38 32 5 0 0 0 - - -; -#X obj 20 57 f; -#X obj 20 38 bng 15 250 50 0 empty empty empty 17 7 0 10 -258699 -241291 --1; #X floatatom 111 108 5 0 0 0 - - -; #X obj 93 131 f; #X obj 93 112 bng 15 250 50 0 empty empty empty 17 7 0 10 -258699 -241291 -1; -#X text 402 375 argument is port number; -#X text 292 600 ***WARNING*** Attempting to print long messages can -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 0 1; -#X obj 295 376 tcpserver 9997; -#X text 21 6 [tcpserver] waits for clients to connect to its port. -; -#X floatatom 769 132 5 0 0 0 - - -; -#X text 809 133 to_client; -#X msg 225 286 client; -#X msg 200 261 client 1; -#X text 268 260 get state of client 1; -#X floatatom 800 301 3 0 0 0 - - -; -#X symbolatom 832 276 15 0 0 0 - - -; -#X floatatom 769 325 5 0 0 0 - - -; -#X floatatom 864 251 7 0 0 0 - - -; -#X text 277 286 get state of all clients (list on right outlet); -#X floatatom 850 87 5 0 0 0 - - -; -#X text 893 88 on_socket; -#X text 248 239 without specified method 'broadcast' is assumed; -#X text 294 583 Received messages are output as stream of bytes; -#X obj 295 563 print tcpserver:received; #X msg 123 184 send 504 1 2 3; -#X msg 174 235 11 216 43; -#X text 162 81 disconnect by client number; -#X floatatom 809 111 5 0 0 0 - - -; -#X obj 769 32 route sent; -#X obj 769 197 route client; -#X obj 390 403 s \$0.tcpserver.o4; -#X obj 769 6 r \$0.tcpserver.o4; -#X obj 769 172 r \$0.tcpserver.o4; -#X text 943 277 ip; -#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 0 1; -#X obj 524 564 print tcpserver:status; +#X text 233 183 send to client on socket 504; #X text 242 153 disconnect by socket number; -#X text 915 251 port; -#X text 826 301 socket; -#X msg 250 311 client 1 1 2 3 4; -#X text 378 310 send (binary) 1 2 3 4 to client 1; -#X text 810 327 client; -#X text 854 110 sent_bytes; -#X floatatom 769 482 5 0 0 0 - - -; -#X floatatom 850 437 5 0 0 0 - - -; -#X floatatom 809 461 5 0 0 0 - - -; -#X obj 769 356 r \$0.tcpserver.o4; -#X obj 769 382 route bufsize; -#X floatatom 763 621 3 0 0 0 - - -; -#X floatatom 817 621 3 0 0 0 - - -; -#X floatatom 790 621 3 0 0 0 - - -; -#X obj 763 515 r \$0.tcpserver.o4; -#X obj 763 541 route address; -#X obj 769 411 unpack f f f; -#X obj 769 223 unpack f f s f; -#X obj 769 61 unpack f f f; -#X obj 366 466 unpack f f f f; -#X obj 763 570 unpack f f f f f; -#X floatatom 844 621 3 0 0 0 - - -; -#X floatatom 872 595 6 0 0 0 - - -; -#X text 870 621 ip; -#X text 918 595 port; -#X text 809 482 socket; -#X text 20 585 2009/04/08 Martin Peach; -#X text 848 462 insize (bytes); -#X text 888 438 outsize (bytes); -#X connect 8 0 24 0; -#X connect 12 0 24 0; -#X connect 13 0 24 0; -#X connect 14 0 15 1; +#X connect 1 0 0 0; +#X connect 2 0 3 1; +#X connect 3 0 1 0; +#X connect 4 0 3 0; +#X connect 5 0 0 0; +#X restore 88 91 pd per.socket; +#N canvas 3 45 450 300 per.client 0; +#X obj 20 224 outlet; +#X msg 20 81 disconnectclient \$1; +#X floatatom 38 32 5 0 0 0 - - -; +#X obj 20 57 f; +#X obj 20 38 bng 15 250 50 0 empty empty empty 17 7 0 10 -258699 -241291 +-1; +#X msg 75 136 client; +#X msg 50 111 client 1; +#X text 118 110 get state of client 1; +#X text 127 136 get state of all clients (list on right outlet); +#X text 162 81 disconnect by client number; +#X msg 100 161 client 1 1 2 3 4; +#X text 228 160 send (binary) 1 2 3 4 to client 1; +#X connect 1 0 0 0; +#X connect 2 0 3 1; +#X connect 3 0 1 0; +#X connect 4 0 3 0; +#X connect 5 0 0 0; +#X connect 6 0 0 0; +#X connect 10 0 0 0; +#X restore 38 66 pd per.client; +#X msg 245 227 disconnect; +#X text 325 225 disconnect all clients; +#N canvas 313 127 698 341 default.targets 0; +#X obj 106 268 outlet; +#X msg 106 82 target 1; +#X msg 157 240 64 64 64 10; +#X text 173 83 per default \, send only to client #1; +#X text 244 241 send to the default target; +#X msg 63 43 target; +#X msg 116 112 target -2; +#X text 187 113 per default \, send to all clients but #2; +#X msg 133 156 targetsocket 7; +#X text 245 154 per default \, send only to client on socket 7; +#X msg 143 186 targetsocket -504; +#X text 272 186 per default \, send to all clients but the one on socket +504; +#X text 120 41 per default \, send to all connected clients (aka 'broadcast') +; +#X connect 1 0 0 0; +#X connect 2 0 0 0; +#X connect 5 0 0 0; +#X connect 6 0 0 0; +#X connect 8 0 0 0; +#X connect 10 0 0 0; +#X restore 247 174 pd default.targets; +#X text 308 139 without specified method 'broadcast' is assumed (see +default.targets); +#N canvas 3 45 768 526 getting.info 1; +#X floatatom 99 162 5 0 0 0 - - -; +#X text 139 163 to_client; +#X floatatom 390 165 3 0 0 0 - - -; +#X symbolatom 422 140 15 0 0 0 - - -; +#X floatatom 359 189 5 0 0 0 - - -; +#X floatatom 454 115 7 0 0 0 - - -; +#X floatatom 180 117 5 0 0 0 - - -; +#X text 223 118 on_socket; +#X floatatom 139 141 5 0 0 0 - - -; +#X obj 99 62 route sent; +#X obj 359 61 route client; +#X obj 99 36 r \$0.tcpserver.o4; +#X obj 359 36 r \$0.tcpserver.o4; +#X text 533 141 ip; +#X text 505 115 port; +#X text 416 165 socket; +#X text 400 191 client; +#X text 184 140 sent_bytes; +#X floatatom 99 342 5 0 0 0 - - -; +#X floatatom 180 297 5 0 0 0 - - -; +#X floatatom 139 321 5 0 0 0 - - -; +#X obj 99 216 r \$0.tcpserver.o4; +#X obj 99 242 route bufsize; +#X floatatom 93 501 3 0 0 0 - - -; +#X floatatom 147 501 3 0 0 0 - - -; +#X floatatom 120 501 3 0 0 0 - - -; +#X obj 93 395 r \$0.tcpserver.o4; +#X obj 93 421 route address; +#X obj 99 271 unpack f f f; +#X obj 359 87 unpack f f s f; +#X obj 99 91 unpack f f f; +#X obj 93 450 unpack f f f f f; +#X floatatom 174 501 3 0 0 0 - - -; +#X floatatom 202 475 6 0 0 0 - - -; +#X text 200 501 ip; +#X text 248 475 port; +#X text 139 342 socket; +#X text 178 322 insize (bytes); +#X text 218 298 outsize (bytes); +#X text 361 261 info about current inqueue/outqueue; +#X text 354 435 NOTE: outlets #3 \, #4 \, #5 are for compatibility +with mrpeach's net obects. you can get all information via outlet #6 +as well; +#X connect 9 0 30 0; +#X connect 10 0 29 0; +#X connect 11 0 9 0; +#X connect 12 0 10 0; +#X connect 21 0 22 0; +#X connect 22 0 28 0; +#X connect 26 0 27 0; +#X connect 27 0 31 0; +#X connect 28 0 18 0; +#X connect 28 1 20 0; +#X connect 28 2 19 0; +#X connect 29 0 4 0; +#X connect 29 1 2 0; +#X connect 29 2 3 0; +#X connect 29 3 5 0; +#X connect 30 0 0 0; +#X connect 30 1 8 0; +#X connect 30 2 6 0; +#X connect 31 0 23 0; +#X connect 31 1 25 0; +#X connect 31 2 24 0; +#X connect 31 3 32 0; +#X connect 31 4 33 0; +#X restore 584 373 pd getting.info; +#X text 602 456 copyright (c) 2009 Martin Peach; +#X text 602 473 copyright (c) 2010 Roman Haefeli; +#X text 602 490 copyright (c) 2010 IOhannes m zmoelnig; +#X connect 8 0 15 0; +#X connect 13 0 18 0; +#X connect 14 0 13 1; #X connect 15 0 13 0; -#X connect 16 0 15 0; -#X connect 17 0 18 1; -#X connect 18 0 12 0; -#X connect 19 0 18 0; -#X connect 22 0 40 0; +#X connect 15 1 0 0; +#X connect 15 2 1 0; +#X connect 15 3 25 0; +#X connect 15 4 20 0; +#X connect 19 0 15 0; +#X connect 21 0 22 0; +#X connect 22 0 24 0; #X connect 23 0 22 1; -#X connect 24 0 22 0; -#X connect 24 1 0 0; -#X connect 24 2 1 0; -#X connect 24 3 75 0; -#X connect 24 4 47 0; -#X connect 28 0 24 0; -#X connect 29 0 24 0; -#X connect 41 0 24 0; -#X connect 42 0 24 0; -#X connect 45 0 74 0; -#X connect 46 0 73 0; -#X connect 48 0 45 0; -#X connect 49 0 46 0; -#X connect 51 0 52 0; -#X connect 52 0 54 0; -#X connect 53 0 52 1; -#X connect 58 0 24 0; -#X connect 65 0 66 0; -#X connect 66 0 72 0; -#X connect 70 0 71 0; -#X connect 71 0 76 0; -#X connect 72 0 62 0; -#X connect 72 1 64 0; -#X connect 72 2 63 0; -#X connect 73 0 33 0; -#X connect 73 1 31 0; -#X connect 73 2 32 0; -#X connect 73 3 34 0; -#X connect 74 0 26 0; -#X connect 74 1 44 0; -#X connect 74 2 36 0; -#X connect 75 0 2 0; -#X connect 75 1 3 0; -#X connect 75 2 4 0; -#X connect 75 3 5 0; -#X connect 76 0 67 0; -#X connect 76 1 69 0; -#X connect 76 2 68 0; -#X connect 76 3 77 0; -#X connect 76 4 78 0; +#X connect 25 0 2 0; +#X connect 25 1 3 0; +#X connect 25 2 4 0; +#X connect 25 3 5 0; +#X connect 26 0 15 0; +#X connect 27 0 15 0; +#X connect 28 0 15 0; +#X connect 30 0 15 0; -- cgit v1.2.1