Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

socket.h File Reference

Network addresses and sockets related classes. More...

#include <cc++/missing.h>
#include <cc++/thread.h>
#include <cc++/exception.h>

Go to the source code of this file.

Classes

class  BroadcastAddress
 The broadcast address object is used to store the broadcast address for a specific subnet. More...

class  InetAddress
 The network name and address objects are all derived from a common InetAddress base class. Internet Address binary data type. More...

class  InetAddrValidator
 Classes derived from InetAddress would require an specific validator to pass to the InetAddress constructor. Abstract base class for derived inet addresses validators. More...

class  InetHostAddress
 This object is used to hold the actual and valid internet address of a specific host machine that will be accessed through a socket. Address of a specific Internet host machine. More...

class  InetMaskAddress
 Internet addresses used specifically as masking addresses (such as " 255.255.255.0") are held in the InetMaskAddress derived object. Internet Address Mask such as subnet masks. More...

class  InetMcastAddress
 A specialization of InetAddress that provides address validation for multicast addresses. A multicast network address. More...

class  InetMcastAddrValidator
 Class for the function object that validates multicast addresses. Validating class specialized for multicast addresses. More...

class  SimpleTCPStream
 Simple TCP Stream, to be used with Common C++ Library. More...

class  Socket
 The Socket is used as the base for all Internet protocol services under Common C++. base class of all sockets. More...

class  SocketPort
 The socket port is an internal class which is attached to and then serviced by a specific SocketService "object". base class for realtime and thread pool serviced protocols. More...

class  SocketService
 The SocketService is a thread pool object that is meant to service attached socket ports. Thread pool service object for socket ports. More...

class  TCPSession
 The TCP session is used to primarily to represent a client connection that can be managed on a seperate thread. Threaded streamable socket with non-blocking constructor. More...

class  TCPSocket
 TCP sockets are used for stream based connected sessions between two sockets. bound server for TCP streams and sessions. More...

class  tcpstream
 A more natural C++ "tcpstream" class for use by non-threaded applications. C++ "fstream" style tcpstream class. More...

class  TCPStream
 TCP streams are used to represent TCP client connections to a server by TCP protocol servers for accepting client connections. streamable TCP socket connection. More...

class  UDPBroadcast
 Representing a UDP socket used for subnet broadcasts, this class provides an alternate binding and setPeer() capability for UDP sockets. Unreliable Datagram for subnet broadcasts. More...

class  UDPDuplex
 UDP duplex connections impliment a bi-directional point-to-point UDP session between two peer hosts. Unreliable Datagram Peer Associations. More...

class  UDPReceive
 Representing half of a two-way UDP connection, the UDP receiver can receive data from another peer host or subnet. Unreliable Datagram Peer Associations. More...

class  UDPSocket
 UDP sockets implement the TCP SOCK_DGRAM UDP protocol. Unreliable Datagram Protocol sockets. More...

class  UDPTransmit
 Representing half of a two-way UDP connection, the UDP transmitter can broadcast data to another selected peer host or to an entire subnet. Unreliable Datagram Peer Associations. More...


Defines

#define INVALID_SOCKET   -1
#define MSG_DONTWAIT   0

Typedefs

typedef int SOCKET
typedef unsigned short tpport_t
 Transport Protocol Ports.


Functions

__EXPORT std::ostream & operator<< (std::ostream &os, const InetAddress &ia)
in_addr getaddress (const InetAddress &ia)

Variables

__EXPORT InetHostAddress
__EXPORT SocketPort
__EXPORT SocketService
__EXPORT SimpleTCPStream


Detailed Description

Network addresses and sockets related classes.


Define Documentation

#define INVALID_SOCKET   -1
 

#define MSG_DONTWAIT   0
 


Typedef Documentation

typedef int SOCKET
 

typedef unsigned short tpport_t
 

Transport Protocol Ports.


Function Documentation

struct in_addr getaddress const InetAddress ia  )  [inline]
 

__EXPORT std::ostream& operator<< std::ostream &  os,
const InetAddress ia
 


Variable Documentation

class __EXPORT InetHostAddress
 

class __EXPORT SimpleTCPStream
 

class __EXPORT SocketPort
 

class __EXPORT SocketService
 

Examples:
tcpservice.cpp.


Generated on Fri Feb 27 11:37:10 2004 for GNU CommonC++ by doxygen 1.3.5