Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

socket.h File Reference

Go to the source code of this file.

Compounds

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  init_WSA
 class init_WSA used to initalise windows sockets specfifc stuff : there is an MS - spcific init sequence for Winsock 2 this class attempts to initalise Winsock 2.2 - needed for non - blocking I/O. 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
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...


Typedefs

typedef int socklen_t
typedef int SOCKET
typedef unsigned short tpport_t
 Transport Protocol Ports.


Enumerations

enum  sockstate_t {
  SOCKET_INITIAL, SOCKET_AVAILABLE, SOCKET_BOUND, SOCKET_CONNECTED,
  SOCKET_CONNECTING, SOCKET_STREAM
}
 used to enumerate type of socket I/O blocking - or non blocking. More...

enum  sockerror_t {
  SOCKET_SUCCESS = 0, SOCKET_CREATE_FAILED, SOCKET_COPY_FAILED, SOCKET_INPUT_ERROR,
  SOCKET_INPUT_INTERRUPT, SOCKET_RESOURCE_FAILURE, SOCKET_OUTPUT_ERROR, SOCKET_OUTPUT_INTERRUPT,
  SOCKET_NOT_CONNECTED, SOCKET_CONNECT_REFUSED, SOCKET_CONNECT_REJECTED, SOCKET_CONNECT_TIMEOUT,
  SOCKET_CONNECT_FAILED, SOCKET_CONNECT_INVALID, SOCKET_CONNECT_BUSY, SOCKET_CONNECT_NOROUTE,
  SOCKET_BINDING_FAILED, SOCKET_BROADCAST_DENIED, SOCKET_ROUTING_DENIED, SOCKET_KEEPALIVE_DENIED,
  SOCKET_SERVICE_DENIED, SOCKET_SERVICE_UNAVAILABLE, SOCKET_MULTICAST_DISABLED, SOCKET_TIMEOUT_ERROR,
  SOCKET_NODELAY_ERROR, SOCKET_EXTENDED_ERROR
}
enum  socktos_t {
  SOCKET_IPTOS_LOWDELAY, SOCKET_IPTOS_THROUGHPUT, SOCKET_IPTOS_RELIABILITY, SOCKET_IPTOS_MINCOST,
  SOCKET_IPTOS_INVALID
}
enum  sockpend_t { SOCKET_PENDING_INPUT, SOCKET_PENDING_OUTPUT, SOCKET_PENDING_ERROR }

Functions

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

Variables

class __EXPORT InetAddress
class __EXPORT InetHostAddress
class __EXPORT InetMaskAddress
class __EXPORT BroadcastAddress
class __EXPORT Socket
class __EXPORT UDPSocket
class __EXPORT UDPBroadcast
class __EXPORT UDPTransmit
class __EXPORT UDPReceive
class __EXPORT UDPDuplex
class __EXPORT TCPSocket
class __EXPORT TCPStream
class __EXPORT tcpstream
class __EXPORT TCPSession


Typedef Documentation

typedef int SOCKET
 

typedef int socklen_t
 

typedef unsigned short tpport_t
 

Transport Protocol Ports.


Enumeration Type Documentation

enum sockerror_t
 

Enumeration values:
SOCKET_SUCCESS  
SOCKET_CREATE_FAILED  
SOCKET_COPY_FAILED  
SOCKET_INPUT_ERROR  
SOCKET_INPUT_INTERRUPT  
SOCKET_RESOURCE_FAILURE  
SOCKET_OUTPUT_ERROR  
SOCKET_OUTPUT_INTERRUPT  
SOCKET_NOT_CONNECTED  
SOCKET_CONNECT_REFUSED  
SOCKET_CONNECT_REJECTED  
SOCKET_CONNECT_TIMEOUT  
SOCKET_CONNECT_FAILED  
SOCKET_CONNECT_INVALID  
SOCKET_CONNECT_BUSY  
SOCKET_CONNECT_NOROUTE  
SOCKET_BINDING_FAILED  
SOCKET_BROADCAST_DENIED  
SOCKET_ROUTING_DENIED  
SOCKET_KEEPALIVE_DENIED  
SOCKET_SERVICE_DENIED  
SOCKET_SERVICE_UNAVAILABLE  
SOCKET_MULTICAST_DISABLED  
SOCKET_TIMEOUT_ERROR  
SOCKET_NODELAY_ERROR  
SOCKET_EXTENDED_ERROR  

enum sockpend_t
 

Enumeration values:
SOCKET_PENDING_INPUT  
SOCKET_PENDING_OUTPUT  
SOCKET_PENDING_ERROR  

enum sockstate_t
 

used to enumerate type of socket I/O blocking - or non blocking.

Enumeration values:
SOCKET_INITIAL  
SOCKET_AVAILABLE  
SOCKET_BOUND  
SOCKET_CONNECTED  
SOCKET_CONNECTING  
SOCKET_STREAM  

enum socktos_t
 

Enumeration values:
SOCKET_IPTOS_LOWDELAY  
SOCKET_IPTOS_THROUGHPUT  
SOCKET_IPTOS_RELIABILITY  
SOCKET_IPTOS_MINCOST  
SOCKET_IPTOS_INVALID  


Function Documentation

struct in_addr getaddress ( const InetAddress & ia ) [inline]
 

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


Variable Documentation

class __EXPORT BroadcastAddress
 

class __EXPORT InetAddress
 

class __EXPORT InetHostAddress
 

class __EXPORT InetMaskAddress
 

class __EXPORT Socket
 

class __EXPORT TCPSession
 

class __EXPORT TCPSocket
 

class __EXPORT TCPStream
 

class __EXPORT UDPBroadcast
 

class __EXPORT UDPDuplex
 

class __EXPORT UDPReceive
 

class __EXPORT UDPSocket
 

class __EXPORT UDPTransmit
 

class __EXPORT tcpstream
 


Generated at Thu Oct 4 15:32:59 2001 for CommonC++ by doxygen1.2.5 written by Dimitri van Heesch, © 1997-2001