aboutsummaryrefslogtreecommitdiff
path: root/externals/build/doc/help-netclient.pd
blob: 46e5b522a4e7650695481bca7f06713d5bd4b069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#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 143 49 written by Olaf Matthes <olaf.matthes@gmx.de>;
#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 <socketnumber> <data>";
#X text 110 70 send message on specified socket;
#X text 200 143 "client <clientnumber> <data>";
#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
or;
#X text 142 32 to pd's native netreceive object;
#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;