IBR-DTNSuite  0.8
ibrcommon Namespace Reference

Classes

class  appstreambuf
 Stream buffer for external applications. More...
class  Base64
class  Base64Reader
class  Base64Stream
class  CanNotOpenFileException
class  BLOB
class  FileBLOB
class  MemoryBLOBProvider
class  FileBLOBProvider
class  HashProvider
class  DefaultHashProvider
class  BloomFilter
class  ConfigFile
class  File
class  FileNotExistsException
class  TemporaryFile
class  iobuffer
class  Exception
class  NotImplementedException
class  IOException
class  Logger
class  iostreamBIO
 This class is a wrapper for iostreams to the OpenSSL Input Output abstraction Layer (called BIO) More...
class  LinkManagerEvent
class  LinkManager
class  DefaultLinkManager
class  lowpansocket
class  lowpanstream_callback
class  lowpanstream
class  MulticastSocket
class  NetLink3ManagerEvent
class  NetLink3Manager
class  NetLinkManagerEvent
class  NetLinkManager
class  stopandwait
class  tcpclient
class  tcpserver
class  ConnectionClosedException
class  tcpstream
class  TLSStream
 A Stream Class that adds Signatures and Encryption through TLS. More...
class  udpsocket
class  UnicastSocket
class  UnicastSocketLowpan
class  vaddress
class  vinterface
class  vsocket_exception
class  vsocket_timeout
class  vsocket_interrupt
class  vsocket
class  AES128Stream
class  CipherStream
class  HashStream
class  HMacStream
class  InputCipherStream
class  RSASHA256Stream
class  XORStream
class  SyslogStream
class  AtomicCounter
class  Conditional
class  StatefulConditional
class  MutexException
class  MutexInterface
class  MutexMock
class  Mutex
class  MutexLock
class  MutexTryLock
class  IndicatingLock
class  ObjectLock
class  QueueUnblockedException
class  Queue
class  RWLock
class  RWMutex
class  Semaphore
class  ThreadException
class  Thread
class  JoinableThread
class  DetachedThread
class  ThreadsafeReference
class  ThreadsafeState
class  TimerCallback
class  Timer
class  TimeMeasurement
class  TLSException
class  ContextCreationException
class  SSLCreationException
class  BIOCreationException
class  TLSHandshakeException
class  TLSNotInitializedException
class  TLSCertificateFileException
class  TLSKeyFileException
class  TLSCertificateVerificationException
class  XMLStreamHandler
class  XMLStreamReader
class  XMLStreamWriter

Typedefs

typedef unsigned int bloom_type
typedef unsigned char cell_type

Enumerations

enum  SyslogPriority {
  SYSLOG_EMERG = LOG_EMERG, SYSLOG_ALERT = LOG_ALERT, SYSLOG_CRIT = LOG_CRIT, SYSLOG_ERR = LOG_ERR,
  SYSLOG_WARNING = LOG_WARNING, SYSLOG_NOTICE = LOG_NOTICE, SYSLOG_INFO = LOG_INFO, SYSLOG_DEBUG = LOG_DEBUG
}

Functions

std::ostream & operator<< (std::ostream &os, const ConfigFile &cf)
std::istream & operator>> (std::istream &is, ConfigFile &cf)
char * get_ip_str (const struct sockaddr *sa, char *s, size_t maxlen)
int get_scope_id (struct sockaddr *sa)
void add_addr_to_list (struct nl_object *obj, void *data)
int __nonlinux_select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
int recvfrom (int fd, char *data, size_t maxbuffer, std::string &address)
std::ostream & operator<< (std::ostream &stream, const SyslogPriority &prio)
std::ostream & operator<< (std::ostream &stream, const TimeMeasurement &measurement)

Variables

std::ostream & slog = SyslogStream::getStream()

Typedef Documentation

typedef unsigned int ibrcommon::bloom_type

Definition at line 22 of file BloomFilter.h.

typedef unsigned char ibrcommon::cell_type

Definition at line 23 of file BloomFilter.h.


Enumeration Type Documentation

Enumerator:
SYSLOG_EMERG 
SYSLOG_ALERT 
SYSLOG_CRIT 
SYSLOG_ERR 
SYSLOG_WARNING 
SYSLOG_NOTICE 
SYSLOG_INFO 
SYSLOG_DEBUG 

Definition at line 32 of file SyslogStream.h.


Function Documentation

int ibrcommon::__nonlinux_select ( int  nfds,
fd_set *  readfds,
fd_set *  writefds,
fd_set *  exceptfds,
struct timeval *  timeout 
)

This select emulated the linux behavior of a select. It measures the time being in the select call and decrement the given timeout value.

Parameters:
nfds
readfds
writefds
exceptfds
timeout
Returns:

Definition at line 30 of file vsocket.cpp.

References ibrcommon::TimeMeasurement::getMicroseconds(), ibrcommon::TimeMeasurement::start(), and ibrcommon::TimeMeasurement::stop().

Referenced by ibrcommon::tcpstream::select(), and ibrcommon::vsocket::select().

Here is the call graph for this function:

void ibrcommon::add_addr_to_list ( struct nl_object *  obj,
void *  data 
)

Definition at line 31 of file NetLink3Manager.cpp.

References ibrcommon::vaddress::strip_netmask().

Referenced by ibrcommon::NetLink3Manager::getAddressList(), and ibrcommon::NetLinkManager::getAddressList().

Here is the call graph for this function:

char* ibrcommon::get_ip_str ( const struct sockaddr *  sa,
char *  s,
size_t  maxlen 
)

Definition at line 205 of file LinkManager.cpp.

Referenced by ibrcommon::DefaultLinkManager::getAddressList().

int ibrcommon::get_scope_id ( struct sockaddr *  sa)

Definition at line 226 of file LinkManager.cpp.

Referenced by ibrcommon::DefaultLinkManager::getAddressList().

std::ostream& ibrcommon::operator<< ( std::ostream &  os,
const ConfigFile &  cf 
)
std::ostream & ibrcommon::operator<< ( std::ostream &  stream,
const SyslogPriority &  prio 
)

Definition at line 57 of file SyslogStream.cpp.

References ibrcommon::SyslogStream::setPriority(), and slog.

Here is the call graph for this function:

std::ostream& ibrcommon::operator<< ( std::ostream &  stream,
const TimeMeasurement &  measurement 
)

Definition at line 106 of file TimeMeasurement.cpp.

References ibrcommon::TimeMeasurement::format().

Here is the call graph for this function:

std::istream& ibrcommon::operator>> ( std::istream &  is,
ConfigFile &  cf 
)
int ibrcommon::recvfrom ( int  fd,
char *  data,
size_t  maxbuffer,
std::string &  address 
)

Variable Documentation

Definition at line 14 of file SyslogStream.cpp.

Referenced by operator<<().