PREV UP NEXT C++ socket classes for OS/2

Chapter 3: sockbuf Class

sockbuf class is derived from streambuf class of the iostream library. You can simultaneously read and write into a sockbuf just like you can listen and talk through a telephone.

  • Constructors How to construct a sockbuf object and how to open a socket?
  • Destructor How to destruct a sockbuf object and how to close a socket?
  • Reading and Writing How to use sockbuf as streambuf?
  • Connection Establishment How to bind an address and establish a connection?
  • Socket Options How to set and get socket options?
  • Timeouts How to gracefully handle connection inactivity?