Comm -- Communications Library

The Comm library contains classes to simplify communications via serial ports, UDP and TCP sockets, and a mechanism for reliable high-performance one-to-many communications using UDP multicast.

Header Files

IPv4Address.h
IPv4Address is a wrapper class representing IP addresses (protocol version 4) in network byte order, based on the in_addr libc structure.
IPv4SocketAddress.h
IPv4SocketAddress is a wrapper class representing IP socket addresses (protocol version 4) in network byte order, based on the sockaddr_in libc structure.
UDPSocket.h
UDPSocket is a class representing a UDP socket. It can create either a listening socket on the local computer, or connect to a listening socket on a remote computer. It supports unreliable sending/receiving of binary data.
TCPSocket.h
TCPSocket is a class representing a TCP socket. It can create either a listening socket on the local computer, or connect to a listening socket on a remote computer. It supports reliable exchange of binary data.
Pipe.h
Pipe is a base class derived from IO::File for classes implementing communication pipe semantics. Provides means to negotiate endianness, wait for arriving data, and wait for pending data to be drained.
SerialPort.h
SerialPort is a concrete derived class of Comm::Pipe to support high-performance access to serial ports.
ListeningTCPSocket.h
ListeningTCPSocket is a support class representing TCP half-sockets that can accept incoming connections. Passed to objects derived from BufferedTCPSocket to create a server-side TCP connection.
NetPipe.h
NetPipe is a base class derived from Comm::Pipe for classes implementing Internet socket connections. Provides means to query local and remote port numbers and Internet addresses.
TCPPipe.h
TCPPipe is a concrete derived class of Comm::Pipe to support high-performance access to TCP sockets.
HttpFile.h
HttpFile is a concrete derived class of IO::File to support high-performance read access to remote files via the HTTP/1.1 protocol.
OpenFile.h
OpenFile.h declares convenience functions to open local or remote files.