15-213 Introduction to Computer Systems
Lecture 19: Network Programming

  • Reading: Ch 12.4
  • Slides:
  • Notes: s
  • Code:
  • Concepts:
    • Creating sockets (socket)
    • Binding ports to sockets (bind)
    • Listening sockets (listen)
    • Accepting connections (accept)
    • Connecting to server (connect)
    • Well-known ports and services
    • Ephemeral ports
  • Previous lecture: Internetworking
  • Next lecture: Web Services