Java Reference
In-Depth Information
Applications
Socket references
TCP sockets
UDP sockets
Sockets bound to ports
TCP ports
1
2
65535
1
2
65535
UDP ports
TCP
UDP
IP
Figure 1.2: Sockets, protocols, and ports.
3. IP is a best-effort protocol, requiring that information be broken down into datagrams,
which may be lost, duplicated, or reordered. TCP hides all of this, providing a reliable
service that takes and delivers an unbroken stream of bytes. How might you go about
providing TCP service on top of IP? Why would anybody use UDP when TCP is available?
 
Search WWH ::




Custom Search