#N canvas 246 114 752 474 12; #X floatatom 49 333 5 0 0; #X floatatom 87 298 5 0 0; #X symbolatom 164 251 10 0 0; #X text 102 332 received data; #X text 140 298 number of connections; #X msg 49 54 print; #X floatatom 125 272 5 0 0; #X text 183 276 socket number; #X msg 103 179 broadcast hallo world!; #X text 288 179 send to all clients; #X text 144 33 written by Olaf Matthes ; #X obj 49 223 netserver 3000; #X text 137 120 send message to client no. 1; #X text 256 251 client's IP address; #X obj 477 189 netclient; #X msg 498 116 connect localhost 3000; #X msg 511 143 disconnect; #X msg 477 84 send 23; #X floatatom 544 218 5 0 0; #X msg 83 91 send 380 17.3; #X floatatom 477 296 5 0 0; #X obj 600 281 print anything; #X obj 538 309 print list; #X obj 477 245 route float list; #X msg 98 142 client 1 23; #X text 204 91 "send "; #X text 110 70 send message on specified socket; #X text 200 143 "client "; #X text 48 379 This example demonstrates how to set up a client/server connection. Data sent by the client get's received and displayed by the server imediately. Or just try it the other way round...; #X text 38 15 netclient :: simple client that connects to netserver ; #X connect 5 0 11 0; #X connect 8 0 11 0; #X connect 11 0 0 0; #X connect 11 1 1 0; #X connect 11 2 6 0; #X connect 11 3 2 0; #X connect 14 0 23 0; #X connect 14 1 18 0; #X connect 15 0 14 0; #X connect 16 0 14 0; #X connect 17 0 14 0; #X connect 19 0 11 0; #X connect 23 0 20 0; #X connect 23 1 22 0; #X connect 23 2 21 0; #X connect 24 0 11 0;