replicode
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
TCPInterface Class Reference

#include <tcp_interface.h>

Inheritance diagram for TCPInterface:
Inheritance graph
Collaboration diagram for TCPInterface:
Collaboration graph

Public Member Functions

 ~TCPInterface ()
 
bool operator== (NetworkInterface &i)
 
bool operator!= (NetworkInterface &i)
 
bool canBroadcast ()
 
uint16_t start ()
 
uint16_t stop ()
 
uint16_t getIDSize ()
 
void fillID (uint8_t *ID)
 
uint16_t newChannel (uint8_t *ID, CommChannel **channel)
 
uint16_t acceptConnection (ConnectedCommChannel **channel, int32_t timeout, bool &timedout)
 
- Public Member Functions inherited from mBrane::sdk::NetworkInterface
virtual ~NetworkInterface ()
 
Protocol protocol () const
 

Static Public Member Functions

static TCPInterfaceNew (XMLNode &n)
 

Private Member Functions

 TCPInterface ()
 
bool load (XMLNode &n)
 

Static Private Member Functions

static bool Init ()
 
static void Shutdown ()
 

Private Attributes

core::socket s
 
struct in_addr address
 
uint32_t port
 

Static Private Attributes

static uint32_t Intialized = 0
 

Additional Inherited Members

- Public Types inherited from mBrane::sdk::NetworkInterface
enum  Protocol { UDP = 0, TCP = 1, RM = 2, IB = 3 }
 
typedef NetworkInterface *(* Load) (XMLNode &, mdaemon::Node *n)
 
- Protected Member Functions inherited from mBrane::sdk::NetworkInterface
 NetworkInterface (Protocol _protocol)
 
- Protected Attributes inherited from mBrane::sdk::NetworkInterface
Protocol _protocol
 

Constructor & Destructor Documentation

TCPInterface::TCPInterface ( )
private

Here is the caller graph for this function:

TCPInterface::~TCPInterface ( )

Member Function Documentation

uint16_t TCPInterface::acceptConnection ( ConnectedCommChannel **  channel,
int32_t  timeout,
bool timedout 
)
virtual

Implements mBrane::sdk::NetworkInterface.

Here is the call graph for this function:

bool TCPInterface::canBroadcast ( )
virtual
void TCPInterface::fillID ( uint8_t ID)
virtual
uint16_t TCPInterface::getIDSize ( )
virtual
bool TCPInterface::Init ( )
staticprivate

Here is the caller graph for this function:

bool TCPInterface::load ( XMLNode n)
private

Here is the call graph for this function:

Here is the caller graph for this function:

TCPInterface * TCPInterface::New ( XMLNode n)
static

Here is the call graph for this function:

Here is the caller graph for this function:

uint16_t TCPInterface::newChannel ( uint8_t ID,
CommChannel **  channel 
)
virtual

Implements mBrane::sdk::NetworkInterface.

Here is the call graph for this function:

bool TCPInterface::operator!= ( NetworkInterface i)
virtual

Implements mBrane::sdk::NetworkInterface.

Here is the call graph for this function:

bool TCPInterface::operator== ( NetworkInterface i)
virtual

Implements mBrane::sdk::NetworkInterface.

Here is the call graph for this function:

Here is the caller graph for this function:

void TCPInterface::Shutdown ( )
staticprivate

Here is the caller graph for this function:

uint16_t TCPInterface::start ( )
virtual

Implements mBrane::sdk::NetworkInterface.

Here is the call graph for this function:

uint16_t TCPInterface::stop ( )
virtual

Implements mBrane::sdk::NetworkInterface.

Here is the call graph for this function:

Member Data Documentation

struct in_addr TCPInterface::address
private
uint32_t TCPInterface::Intialized = 0
staticprivate
uint32_t TCPInterface::port
private
core::socket TCPInterface::s
private

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