diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-04-11 02:29:04 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-04-11 02:29:04 +0000 |
commit | 08a6174a58cd6cb8cc33358feb2d813e44f36866 (patch) | |
tree | 67a9cd54ac1b6f9315b28dbf5e29e1c448be5270 /doc/tutorials/networking/Attic/02.tcp_and_udp.pd | |
parent | 850f29364e6e488d6ad28bb2e9b5d5130e50e22b (diff) |
added another basic to the series and a chat client/server which will be turned into an exercise
svn path=/trunk/; revision=4872
Diffstat (limited to 'doc/tutorials/networking/Attic/02.tcp_and_udp.pd')
-rw-r--r-- | doc/tutorials/networking/Attic/02.tcp_and_udp.pd | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/tutorials/networking/Attic/02.tcp_and_udp.pd b/doc/tutorials/networking/Attic/02.tcp_and_udp.pd new file mode 100644 index 00000000..514cf849 --- /dev/null +++ b/doc/tutorials/networking/Attic/02.tcp_and_udp.pd @@ -0,0 +1,31 @@ +#N canvas 185 93 644 464 10; +#X obj 511 62 import maxlib; +#X obj 10 10 cnv 15 400 40 empty empty tcp_and_udp 20 12 0 24 -228992 +-66577 0; +#X text 11 66 There are two main protocols for transmitting data over +networks: TCP and UDP.; +#X text 35 119 TCP is the most common \, it stands for Transmission +Control Protocol. Basically \, that means that the protocol manages +the transmission of the data. With TCP \, when you send a packet of +data \, its guaranteed to arrive.; +#X text 34 202 By default \, most networking objects in Pd use TCP: +; +#X obj 54 223 netsend; +#X obj 266 224 netclient; +#X obj 359 224 netserver; +#X text 178 295 UDP stands for User Datagram Protocol. It is a lightweight +\, simple protocol that is meant to be as quick and small as possible. +The downside is that the data packets are not guaranteed to arrive. +; +#X obj 35 180 pddp/pddplink http://en.wikipedia.org/wiki/Transmission_Control_Protocol +; +#X obj 177 355 pddp/pddplink http://en.wikipedia.org/wiki/User_Datagram_Protocol +; +#X obj 132 224 netreceive 32194; +#X obj 265 386 netreceive 32194 1; +#X obj 187 386 netsend 1; +#X obj 407 386 sendOSC; +#X obj 478 386 dumpOSC 32192; +#X text 180 409 One advantage to UDP is that you do not need to maintain +a connection to receive data. Whenever you open a UDP port \, you will +start receiving data.; |