Escolar Documentos
Profissional Documentos
Cultura Documentos
Objectives
FileInputStream
BufferedInputStream DataInputStream
Basics of Networking:
Computers running on the Internet communicating to each
other using the Transmission Control Protocol (TCP) / Internet
Protocol (IP).
Client.bar.com
18000
Server. foo.com
3000 Port no.
Client.baz.com
18002
Server
SeverSocket(port#) Register with
ServerSocket.accept() this service Client
Wait for a
Socket(host, port#)
Socket() connection (Attempt to connect)
OutputStream OutputStream
InputStream InputStream
Socket.close()
Socket.close()
Lets see how to create a TCP based Java client, and use user-
provided system properties to drive a Java program.