iCub-main
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
eth::TheEthManager Class Reference

#include <ethManager.h>

Public Types

enum  { maxBoards = eth::EthBoards::maxEthBoards }
 
enum  {
  maxRXpacketsize = 1496 ,
  maxTXpacketsize = 1496
}
 

Public Member Functions

double getLifeTime (void)
 
bool verifyEthBoardInfo (yarp::os::Searchable &cfgtotal, eOipv4addr_t &boardipv4, string boardipv4string, string boardname)
 
eth::AbstractEthResourcerequestResource2 (IethResource *interface, yarp::os::Searchable &cfgtotal)
 
int releaseResource2 (eth::AbstractEthResource *ethresource, IethResource *interface)
 
const eOipv4addressing_t & getLocalIPV4addressing (void)
 
bool Transmission (void)
 
bool CheckPresence (void)
 
bool Reception (eOipv4addr_t from, uint64_t *data, ssize_t size)
 
eth::AbstractEthResourcegetEthResource (eOipv4addr_t ipv4)
 
IethResourcegetInterface (eOipv4addr_t ipv4, eOprotID32_t id32)
 
IethResourcegetInterface (eOipv4addr_t ipv4, iethresType_t type)
 
int getNumberOfResources (void)
 
const string & getName (eOipv4addr_t ipv4)
 
int sendPacket (const void *udpframe, size_t len, const eOipv4addressing_t &toaddressing)
 
eOipv4addr_t toipv4addr (const ACE_INET_Addr &aceinetaddr)
 
ACE_INET_Addr toaceinet (const eOipv4addressing_t &ipv4addressing)
 

Static Public Member Functions

static TheEthManagerinstance ()
 
static bool killYourself ()
 

Public Attributes

eth::EthBoardsethBoards
 

Detailed Description

Definition at line 83 of file ethManager.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
maxBoards 

Definition at line 88 of file ethManager.h.

◆ anonymous enum

anonymous enum
Enumerator
maxRXpacketsize 
maxTXpacketsize 

Definition at line 90 of file ethManager.h.

Member Function Documentation

◆ CheckPresence()

bool TheEthManager::CheckPresence ( void  )

Definition at line 275 of file ethManager.cpp.

◆ getEthResource()

eth::AbstractEthResource * TheEthManager::getEthResource ( eOipv4addr_t  ipv4)

Definition at line 708 of file ethManager.cpp.

◆ getInterface() [1/2]

IethResource * TheEthManager::getInterface ( eOipv4addr_t  ipv4,
eOprotID32_t  id32 
)

Definition at line 514 of file ethManager.cpp.

◆ getInterface() [2/2]

IethResource * TheEthManager::getInterface ( eOipv4addr_t  ipv4,
iethresType_t  type 
)

Definition at line 522 of file ethManager.cpp.

◆ getLifeTime()

double TheEthManager::getLifeTime ( void  )

Definition at line 529 of file ethManager.cpp.

◆ getLocalIPV4addressing()

const eOipv4addressing_t & TheEthManager::getLocalIPV4addressing ( void  )

Definition at line 508 of file ethManager.cpp.

◆ getName()

const string & TheEthManager::getName ( eOipv4addr_t  ipv4)

Definition at line 702 of file ethManager.cpp.

◆ getNumberOfResources()

int TheEthManager::getNumberOfResources ( void  )

Definition at line 696 of file ethManager.cpp.

◆ instance()

TheEthManager * TheEthManager::instance ( )
static

Definition at line 159 of file ethManager.cpp.

◆ killYourself()

bool TheEthManager::killYourself ( )
static

Definition at line 178 of file ethManager.cpp.

◆ Reception()

bool TheEthManager::Reception ( eOipv4addr_t  from,
uint64_t *  data,
ssize_t  size 
)

Definition at line 666 of file ethManager.cpp.

◆ releaseResource2()

int TheEthManager::releaseResource2 ( eth::AbstractEthResource ethresource,
IethResource interface 
)

Definition at line 409 of file ethManager.cpp.

◆ requestResource2()

eth::AbstractEthResource * TheEthManager::requestResource2 ( IethResource interface,
yarp::os::Searchable &  cfgtotal 
)

Definition at line 336 of file ethManager.cpp.

◆ sendPacket()

int TheEthManager::sendPacket ( const void *  udpframe,
size_t  len,
const eOipv4addressing_t &  toaddressing 
)

Definition at line 636 of file ethManager.cpp.

◆ toaceinet()

ACE_INET_Addr TheEthManager::toaceinet ( const eOipv4addressing_t &  ipv4addressing)

Definition at line 655 of file ethManager.cpp.

◆ toipv4addr()

eOipv4addr_t TheEthManager::toipv4addr ( const ACE_INET_Addr &  aceinetaddr)

Definition at line 645 of file ethManager.cpp.

◆ Transmission()

bool TheEthManager::Transmission ( void  )

Definition at line 253 of file ethManager.cpp.

◆ verifyEthBoardInfo()

bool TheEthManager::verifyEthBoardInfo ( yarp::os::Searchable &  cfgtotal,
eOipv4addr_t &  boardipv4,
string  boardipv4string,
string  boardname 
)

Definition at line 283 of file ethManager.cpp.

Member Data Documentation

◆ ethBoards

eth::EthBoards* eth::TheEthManager::ethBoards

Definition at line 93 of file ethManager.h.


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