Practical C++ Sockets
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 Jeff_Donahoo@Baylor.edu.
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.
- Class Documentation
- Source:
- C++ TCP Socket Examples
- C++ UDP Socket Examples
- UDPEchoClient.cpp - Implements a simple echo
client. It first connects to a UDP echo server, and then it sends and receives
an echo word supplied by the user on the command line.
- UDPEchoServer.cpp - Implements a
simple echo server.
- BroadcastReceiver.cpp - Implements a
simple receiver that accepts and prints a single broadcast UDP datagram.
- BroadcastSender.cpp - Implements a
simple sender that repeatedly broadcasts a single UDP datagram.
- MulticastReceiver.cpp - Implements a
simple receiver that accepts and prints a single multicast UDP datagram.
- MulticastSender.cpp - Implements a
simple sender that repeatedly multicasts a single UDP datagram.
- Make sure to read the readme file for
compilation instructions or use/look at the Makefile.
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
|