Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ConnectionInterface Class Reference

#include <ConnectionInterface.h>

Inheritance diagram for ConnectionInterface::

ObservableInterface SslConnection TcpConnection List of all members.

Public Methods

virtual ~ConnectionInterface ()
virtual int connect ()=0
virtual void close ()=0
virtual int listen ()=0
virtual ConnectionInterface * accept ()=0
virtual int read (unsigned char *buffer, int bufferSize, int amountToRead)=0
virtual int write (unsigned char *buffer, int amount)=0
virtual bool isConnected ()=0
virtual bool isConnectedTo (IpAddress)=0
virtual SocketAddressgetSocketAddress ()=0
virtual void setSocketAddress (SocketAddress *)=0
virtual int getStream ()=0
virtual void setStream (int)=0
virtual ObjectType getConnectionType ()=0

Static Public Methods

ConnectionInterface * createConnectionObject (ObjectType)

Constructor & Destructor Documentation

virtual ConnectionInterface::~ConnectionInterface [inline, virtual]
 

Definition at line 21 of file ConnectionInterface.h.


Member Function Documentation

virtual ConnectionInterface* ConnectionInterface::accept [pure virtual]
 

Reimplemented in SslConnection, and TcpConnection.

Referenced by SslConnection::accept().

virtual void ConnectionInterface::close [pure virtual]
 

Reimplemented in SslConnection, and TcpConnection.

Referenced by SslConnection::close(), and LinkLayerInterface::remove().

virtual int ConnectionInterface::connect [pure virtual]
 

Reimplemented in SslConnection, and TcpConnection.

Referenced by SslConnection::connect(), and LinkLayerInterface::connect().

ConnectionInterface * ConnectionInterface::createConnectionObject ObjectType type [static]
 

Definition at line 4 of file ConnectionInterface.cpp.

Referenced by Config::Config(), and LinkLayerInterface::connect().

virtual ObjectType ConnectionInterface::getConnectionType [pure virtual]
 

Reimplemented in SslConnection, and TcpConnection.

virtual SocketAddress* ConnectionInterface::getSocketAddress [pure virtual]
 

Reimplemented in SslConnection, and TcpConnection.

Referenced by SslConnection::accept(), LinkLayerInterface::accept(), Node::equals(), and SslConnection::getSocketAddress().

virtual int ConnectionInterface::getStream [pure virtual]
 

Reimplemented in SslConnection, and TcpConnection.

Referenced by SslConnection::accept(), LinkLayerInterface::add(), SslConnection::connect(), and SslConnection::getStream().

virtual bool ConnectionInterface::isConnected [pure virtual]
 

Reimplemented in SslConnection, and TcpConnection.

Referenced by SslConnection::connect(), SslConnection::isConnected(), SslConnection::read(), and NpPacket::read().

virtual bool ConnectionInterface::isConnectedTo IpAddress ipAddr [pure virtual]
 

Reimplemented in SslConnection, and TcpConnection.

Referenced by SslConnection::isConnectedTo().

virtual int ConnectionInterface::listen [pure virtual]
 

Reimplemented in SslConnection, and TcpConnection.

Referenced by SslConnection::listen().

virtual int ConnectionInterface::read unsigned char * buffer,
int bufferSize,
int amountToRead
[pure virtual]
 

Reimplemented in SslConnection, and TcpConnection.

Referenced by NpPacket::read().

virtual void ConnectionInterface::setSocketAddress SocketAddress * socketAddress [pure virtual]
 

Reimplemented in SslConnection, and TcpConnection.

Referenced by Config::Config(), LinkLayerInterface::connect(), and SslConnection::setSocketAddress().

virtual void ConnectionInterface::setStream int stream [pure virtual]
 

Reimplemented in SslConnection, and TcpConnection.

Referenced by SslConnection::setStream().

virtual int ConnectionInterface::write unsigned char * buffer,
int amountToWrite
[pure virtual]
 

Reimplemented in SslConnection, and TcpConnection.

Referenced by NpPacket::write().


The documentation for this class was generated from the following files:
Generated at Thu Jul 11 13:31:56 2002 for Peekabooty by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001