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

#include <udp_interface.h>

Inheritance diagram for UDPInterface:
Inheritance graph
Collaboration diagram for UDPInterface:
Collaboration graph

Public Member Functions

 ~UDPInterface ()
 
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 UDPInterfaceNew (XMLNode &n)
 

Private Member Functions

 UDPInterface ()
 
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

UDPInterface::UDPInterface ( )
private

Here is the caller graph for this function:

UDPInterface::~UDPInterface ( )

Here is the call graph for this function:

Member Function Documentation

uint16_t UDPInterface::acceptConnection ( ConnectedCommChannel **  channel,
int32_t  timeout,
bool timedout 
)
virtual
bool UDPInterface::canBroadcast ( )
virtual
void UDPInterface::fillID ( uint8_t ID)
virtual
uint16_t UDPInterface::getIDSize ( )
virtual
bool UDPInterface::Init ( )
staticprivate

Here is the caller graph for this function:

bool UDPInterface::load ( XMLNode n)
private

Here is the call graph for this function:

Here is the caller graph for this function:

UDPInterface * UDPInterface::New ( XMLNode n)
static

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements mBrane::sdk::NetworkInterface.

Here is the call graph for this function:

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

Implements mBrane::sdk::NetworkInterface.

Here is the call graph for this function:

bool UDPInterface::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 UDPInterface::Shutdown ( )
staticprivate

Here is the caller graph for this function:

uint16_t UDPInterface::start ( )
virtual
uint16_t UDPInterface::stop ( )
virtual

Implements mBrane::sdk::NetworkInterface.

Here is the call graph for this function:

Member Data Documentation

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

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