{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Java Networking (16) - COP 3330 Object-Oriented Programming...

Info icon This preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
COP 3330: Java Networking Page 1 © Dr. Mark Llewellyn COP 3330: Object-Oriented Programming Summer 2011 Java Networking Department of Electrical Engineering and Computer Science Computer Science Division University of Central Florida Instructor : Dr. Mark Llewellyn [email protected] HEC 236, 407-823-2790 http://www.cs.ucf.edu/courses/cop3330/sum2011
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
COP 3330: Java Networking Page 2 © Dr. Mark Llewellyn Java Networking Networking is tightly integrated in Java. The Java API provides the classes for creating sockets to facilitate program communications over the Internet. Sockets are the endpoints of logical connections between two hosts and can be used to send and receive data. Java treats socket communication similar to the way it treats I/O operations; thus applications can read from or write to sockets as easily as they can read from or write to files.
Image of page 2
COP 3330: Java Networking Page 3 © Dr. Mark Llewellyn Java Networking The Internet Protocol (IP) is a low-level protocol for delivering data from one computer to another across the Internet in packets. Two higher-level protocols used in conjunction with IP are the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP). TCP enables two hosts to establish a connection and exchange streams of data. TCP guarantees that all packets sent are delivered in the same order in which they were sent. UDP is a low-overhead, connectionless, host-to-host protocol that allows a datagram to be sent from one host to another. No connection is established and no guarantees are offered.
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon