From 44031070a9069f9337181b57b4ea2f76dba9831a Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Wed, 21 Mar 2012 21:16:02 +0000 Subject: Added [import moocow] so [any2string] and [string2any] will work. Removed [declare] objects that don't work. svn path=/trunk/externals/mrpeach/; revision=16088 --- net/tcpsocketserver-help.pd | 49 ++++++++++++++++++++------------------------- 1 file changed, 22 insertions(+), 27 deletions(-) diff --git a/net/tcpsocketserver-help.pd b/net/tcpsocketserver-help.pd index 0960094..96dd001 100644 --- a/net/tcpsocketserver-help.pd +++ b/net/tcpsocketserver-help.pd @@ -1,10 +1,9 @@ -#N canvas 84 59 878 523 10; +#N canvas 361 252 878 523 10; #X declare -stdpath extra/mrpeach; -#X declare -stdlib extra/pdstring declare -stdlib extra/maxlib; #X declare -stdpath extra/mrpeach; -#X declare -stdpath extra/moocow declare -stdpath extra/maxlib; +#X declare -lib moocow; #X declare -stdpath extra/mrpeach; -#X declare -stdlib extra/pdstring declare -stdlib extra/maxlib; +#X declare -lib moocow; #X msg 471 74 print; #X text 521 75 list of connections; #X text 627 103 send to all clients; @@ -48,7 +47,7 @@ might mix up packets from different sockets.; abstraction \, which should be named [tcpsocket.PROTOCOL]. currently available are the protocols:; #X text 23 293 - FUDI; -#N canvas 701 158 472 356 EXTENDABILITY 0; +#N canvas 702 157 472 356 EXTENDABILITY 0; #X text 3 39 Support for more protocols can easily be added. In order to do so:; #X text 5 10 EXTENDABILITY; @@ -69,8 +68,8 @@ of packet transmission.; replacement for [tcpserver]. it uses same the same inlet and outlet configuration as [tcpserver].; #X text 469 478 only well-formed FUDI messages are received here.; -#N canvas 460 289 147 274 EXAMPLES 0; -#N canvas 1109 44 571 769 FUDI 0; +#N canvas 463 454 147 274 EXAMPLES 0; +#N canvas 705 77 571 769 FUDI 0; #X obj 8 52 cnv 15 550 240 empty empty client_1 20 12 0 14 -249661 -66577 0; #X obj 24 206 tcpclient; @@ -94,8 +93,6 @@ configuration as [tcpserver].; #X obj 24 227 string2any 0 59; #X obj 24 247 route bang; #X obj 24 386 netclient; -#X obj 8 9 declare -stdlib extra/pdstring declare -stdlib extra/maxlib -; #X obj 24 415 print CLIENT_2; #X text 168 337 <- send FUDI message; #X obj 9 457 cnv 15 550 300 empty empty FUDI_server 20 12 0 14 -241408 @@ -131,8 +128,7 @@ a message with client_1 and see \, how the server behaves.; #X msg 42 563 client 2 115 101 118 101 110 32 59 10; #X msg 41 534 client 2 115 101 118 101 110 32; #X obj 11 733 print SERVER; -#X obj 8 29 declare -stdpath extra/moocow declare -stdpath extra/maxlib -; +#X obj 20 32 import moocow; #X connect 1 0 16 0; #X connect 2 0 1 0; #X connect 3 0 1 0; @@ -150,22 +146,22 @@ a message with client_1 and see \, how the server behaves.; #X connect 15 0 14 0; #X connect 16 0 17 0; #X connect 17 1 6 0; -#X connect 18 0 20 0; +#X connect 18 0 19 0; +#X connect 22 0 23 0; +#X connect 22 1 32 0; +#X connect 22 2 31 0; +#X connect 22 3 25 0; #X connect 23 0 24 0; -#X connect 23 1 33 0; -#X connect 23 2 32 0; -#X connect 23 3 26 0; -#X connect 24 0 25 0; -#X connect 25 1 50 0; -#X connect 26 0 27 0; -#X connect 26 1 28 0; -#X connect 26 2 29 0; -#X connect 26 3 30 0; -#X connect 47 0 18 0; -#X connect 48 0 23 0; -#X connect 49 0 23 0; +#X connect 24 1 49 0; +#X connect 25 0 26 0; +#X connect 25 1 27 0; +#X connect 25 2 28 0; +#X connect 25 3 29 0; +#X connect 46 0 18 0; +#X connect 47 0 22 0; +#X connect 48 0 22 0; #X restore 23 25 pd FUDI; -#N canvas 1101 44 579 756 OSC 0; +#N canvas 697 77 579 756 OSC 0; #X obj 9 39 cnv 15 550 240 empty empty client_1 20 12 0 14 -249661 -66577 0; #X obj 25 211 tcpclient; @@ -226,10 +222,9 @@ a message with client_1 and see \, how the server behaves.; suitable for tcp transport.; #X text 238 486 send to clients; #X text 93 695 <---; -#X obj 8 9 declare -stdlib extra/pdstring declare -stdlib extra/maxlib -; #X text 139 694 CAUTION: not [unpackOSCstream] is used here \, since [tcpsocket.OSC] already unwraps the OSC message; +#X obj 8 9 import moocow; #X connect 1 0 29 0; #X connect 2 0 1 0; #X connect 3 0 27 0; -- cgit v1.2.1