replicode
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mBrane::sdk::NetworkInterface Class Referenceabstract

#include <network_interface.h>

Inheritance diagram for mBrane::sdk::NetworkInterface:
Inheritance graph
Collaboration diagram for mBrane::sdk::NetworkInterface:
Collaboration graph

Public Types

enum  Protocol { UDP = 0, TCP = 1, RM = 2, IB = 3 }
 
typedef NetworkInterface *(* Load) (XMLNode &, mdaemon::Node *n)
 

Public Member Functions

virtual ~NetworkInterface ()
 
Protocol protocol () const
 
virtual bool operator== (NetworkInterface &i)=0
 
virtual bool operator!= (NetworkInterface &i)=0
 
virtual bool canBroadcast ()=0
 
virtual uint16_t start ()=0
 
virtual uint16_t stop ()=0
 
virtual uint16_t getIDSize ()=0
 
virtual void fillID (uint8_t *ID)=0
 
virtual uint16_t newChannel (uint8_t *ID, CommChannel **channel)=0
 
virtual uint16_t acceptConnection (ConnectedCommChannel **channel, int32_t timeout, bool &timedout)=0
 

Protected Member Functions

 NetworkInterface (Protocol _protocol)
 

Protected Attributes

Protocol _protocol
 

Member Typedef Documentation

typedef NetworkInterface*(* mBrane::sdk::NetworkInterface::Load) (XMLNode &, mdaemon::Node *n)

Member Enumeration Documentation

Enumerator
UDP 
TCP 
RM 
IB 

Constructor & Destructor Documentation

mBrane::sdk::NetworkInterface::NetworkInterface ( Protocol  _protocol)
protected
mBrane::sdk::NetworkInterface::~NetworkInterface ( )
virtual

Member Function Documentation

virtual uint16_t mBrane::sdk::NetworkInterface::acceptConnection ( ConnectedCommChannel **  channel,
int32_t  timeout,
bool timedout 
)
pure virtual

Implemented in TCPInterface, and UDPInterface.

Here is the caller graph for this function:

virtual bool mBrane::sdk::NetworkInterface::canBroadcast ( )
pure virtual

Implemented in TCPInterface, and UDPInterface.

Here is the caller graph for this function:

virtual void mBrane::sdk::NetworkInterface::fillID ( uint8_t ID)
pure virtual

Implemented in TCPInterface, and UDPInterface.

Here is the caller graph for this function:

virtual uint16_t mBrane::sdk::NetworkInterface::getIDSize ( )
pure virtual

Implemented in TCPInterface, and UDPInterface.

Here is the caller graph for this function:

virtual uint16_t mBrane::sdk::NetworkInterface::newChannel ( uint8_t ID,
CommChannel **  channel 
)
pure virtual

Implemented in TCPInterface, and UDPInterface.

virtual bool mBrane::sdk::NetworkInterface::operator!= ( NetworkInterface i)
pure virtual

Implemented in TCPInterface, and UDPInterface.

virtual bool mBrane::sdk::NetworkInterface::operator== ( NetworkInterface i)
pure virtual

Implemented in TCPInterface, and UDPInterface.

NetworkInterface::Protocol mBrane::sdk::NetworkInterface::protocol ( ) const

Here is the caller graph for this function:

virtual uint16_t mBrane::sdk::NetworkInterface::start ( )
pure virtual

Implemented in TCPInterface, and UDPInterface.

virtual uint16_t mBrane::sdk::NetworkInterface::stop ( )
pure virtual

Implemented in TCPInterface, and UDPInterface.

Here is the caller graph for this function:

Member Data Documentation

Protocol mBrane::sdk::NetworkInterface::_protocol
protected

The documentation for this class was generated from the following files: