Week 6b - Sockets Example Code

Connected, stream-oriented communication

Synopsis:

This lecture starts with help with Projects, then continues with a discussion of Sockets Demos and Example code.

Glossary of Terms

  1. Help with Projects:

    All code will be developed using C++ and the Standard C++ Library with latest version of Visual Studio .

    Code grade sheet, Grading policy

  2. Synchronous Discussion:

  3. Win32 and C++ Sockets

    Sockets natively read and write sequences of bytes

    To communicate usefully you usually have to frame messages and abide by some talk protocol, e.g., who can send and who should listen. All of this is discussed and illustrated with code, using the links on this page. You've seen the links, below, in the last lecture on Threads. The techniques they present are needed for building responsive message-passing communication channels.
  4. Tutorials:

  5. Lecture Take-aways:

    The most important things we discussed are: