Lecture 3: Socket Programming

27 January, 2014.

You Won’t Believe How Many Lines of Code It Takes To Write a Minimum Workable Web Server. You Have to See It!

After finishing off our discussion on DNS, I will show how to write simple TCP applications, include a Web server, in Java. I will also show you how to program a UDP-based networked application.

Related sections from Java API documentation: Socket, ServerSocket, DatagramSocket, , InetAddress

There is no corresponding sections in the textbook (the book uses Python for socket programming).

Source code written during class will be posted after the class.

This entry was posted in lecture.

Leave a Reply