Title: Networking: TCP/IP and Basic Sockets
Course: CPS 261: Advanced Java Concepts ~ DL & MM MASTER > Section: Learning Units - Bb

Presentations and Videos

- Networking: TCP/IP and Basic Sockets lecture video (Time: 00:00)
- Networking: TCP/IP and Basic Sockets document

- Networking layered architecture:Socket Programming gives us an API to reliably send and receive packets of data from the TCP/IP layer. All of the protocols(Http, Ftp, etc.) make use of the this layer.
  - Protocols like Http, Ftp, SMTP, IMAP, POP, Telnet sit on top of TCP/IP
  - TCP/IP (Transmission Control Protocol and Internet Protocol) layer
  - Hardware Layer: Ethernet, Wireless, Twisted Pair, etc.
- EchoServerSingleThreaded.java example: Single Threaded Echo Server. Server waits on an "accept" call until a connection request comes in. A Socket data structure is returned from the "accept" call and it can be turned into an InputStream and OutputStream which then allows us to use our Scanner and PrintStream classes.
- EchoClient.java example: This class does a "connect" to some Server and also receives a Socket data structure. Again the client can convert the Socket into an InputStream or an OutputStream and use the Scanner and PrintStream classes to simplify communication.