GNet Namespace Reference

Network classes. More...


Classes

class  Address
 The Address class encapsulates an IP transport address. More...
class  AddressStorage
 A helper class for calling getsockname() and getpeername() and hiding the definition of sockaddr_storage. More...
class  AddressImp
 A pimple-pattern implementation class for GNet::Address. More...
class  AddressStorageImp
 A pimple-pattern implementation class for GNet::AddressStorage. More...
class  BufferedServerPeer
 A ServerPeer that does line-buffering on input. More...
class  Client
 A BufferedClient class that adds slot/signal signalling, connection/response timeouts, and input line buffering. More...
class  ClientPtr
 A smart pointer class for GNet::HeapClient. More...
class  Connection
 An interface which provides address information for a network connection. More...
class  EventHandler
 A base class for classes that handle asynchronous socket events. More...
class  EventHandlerList
 A class which can be used in the implemention of classes derived from GNet::EventLoop. More...
class  EventLoop
 An abstract base class for a singleton which keeps track of open sockets and their associated handlers. More...
class  FdSet
 An "fd_set" wrapper type. More...
class  Select
 A concrete implementation of GNet::EventLoop using select() in the implementation. More...
class  Lock
 A private implementation class used by GNet::Select to lock data structures in the face of reentrancy. More...
class  HeapClient
 A SimpleClient class for objects that manage their own lifetime on the heap. More...
class  LineBuffer
 A class which does line buffering. More...
class  LineBufferIterator
 An iterator class for GNet::LineBuffer. More...
class  Local
 A static class for getting information about the local machine's network name and address. More...
class  MonitorImp
 A pimple pattern implementation class for GNet::Monitor. More...
class  Monitor
 A singleton for monitoring SimpleClient and ServerPeer connections. More...
class  MultiServerImp
 A private implementation class used by GNet::MultiServer. More...
class  MultiServerPtr
 A private implementation class used by GNet::MultiServer. More...
class  MultiServer
 A server that listens on more than one interface using a facade pattern to multiple Server instances. More...
class  Resolver
 A class for asynchronous TCP name-to-address resolution. More...
class  ResolverImp
 A pimple-pattern implementation class for GNet::Resolver. More...
class  ResolverInfo
 A class that holds a host/service name pair and optionally the results of a name-to-address lookup, ie. More...
class  ServerPeerHandle
 A structure used in the implementation of GNet::Server. More...
class  Server
 A network server class which listens on a specific port and spins off ServerPeer objects for each incoming connection. More...
class  ServerPeer
 An abstract base class for the GNet::Server's connection to a remote client. More...
class  ClientResolver
 A resolver class which calls SimpleClient::resolveCon() when done. More...
class  SimpleClient
 A class for making an outgoing connection to a remote server. More...
class  Socket
 The Socket class encapsulates a non-blocking Unix socket file descriptor or a Windows 'SOCKET' handle. More...
class  AcceptPair
 A class which behaves like std::pair<std::auto_ptr<StreamSocket>,Address>. More...
class  StreamSocket
 A derivation of Socket for a stream socket. More...
class  DatagramSocket
 A derivation of Socket for a connectionless datagram socket. More...
class  SocketProtocolImp
 A private implementation class used by GNet::SocketProtocol. More...
class  SocketProtocol
 A class for doing read() and write() on a connected socket and installing and removing event handlers as appropriate. More...
class  SocketProtocolSink
 An interface used by GNet::SocketProtocol to deliver data from a socket. More...
class  TimerUpdate
 A private implementation class used by GNet::AbstractTimer. More...
class  AbstractTimer
 A timer base class that calls a pure virtual method on expiry. More...
class  Timer
 A timer class template in which the timeout is delivered to the specified method. More...
class  TimerList
 A singleton which maintains a list of all Timer objects, and interfaces to the event loop on their behalf. More...

Typedefs

typedef ::SOCKET Descriptor

Functions

bool Descriptor__valid (Descriptor fd)
 Tests whether the given network descriptor is valid.
Descriptor Descriptor__invalid ()
 Returns an invalid network descriptor.


Detailed Description

Network classes.

The GNet namespace contains network interface classes based on the Berkley socket and WinSock system APIs.

Key classes are:


Typedef Documentation

typedef ::SOCKET GNet::Descriptor

Definition at line 30 of file gdescriptor.h.


Function Documentation

GNet::Descriptor GNet::Descriptor__invalid (  ) 

Returns an invalid network descriptor.

Definition at line 30 of file gdescriptor_unix.cpp.

bool GNet::Descriptor__valid ( Descriptor  fd  ) 

Tests whether the given network descriptor is valid.

Definition at line 25 of file gdescriptor_unix.cpp.


Generated on Fri Apr 18 15:56:13 2008 for E-MailRelay by  doxygen 1.5.5