Practical C++ Sockets

This library was developed for pedagogical use and is not suitable for production applications. This library is currently in development and is subject to fundamental change at any time. Use at your own risk. This project is very much a work in progress so if you have any comments or suggestions on the current code, please send email to

Practical C++ Sockets provides wrapper classes for a subset of the Berkeley C Socket API for TCP and UDP sockets. It should work on both the Unix (tested under Linux, RedHat 7.3 with gcc) and Windows (tested under Win2K with Visual C++ 6.0) platforms. The purpose of this project was to develop a very simple C++ interface to sockets. In writing the code, we often chose clarity over efficiency.

To understand how this library works, consider purchasing
TCP/IP Sockets in C: Practical Guide for Programmers (ISBN: 1-55860-826-5) by Michael J. Donahoo and Kenneth L. Calvert
Originally published as: The Pocket Guide to TCP/IP Sockets: C Version (ISBN: 1-55860-686-6)
Official Web Site
Author Web Site