IBR-DTNSuite  0.10
ibrcommon Namespace Reference

Namespaces

namespace  LogLevel
 

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  find_iterator
 
class  LinkEvent
 
class  LinkManager
 
class  NetLinkManager
 
class  PosixLinkManager
 
class  Logger
 
class  lowpansocket
 
class  lowpanstream_callback
 
class  lowpanstream
 
class  socket_exception
 
class  socket_error
 
class  socket_raw_error
 
class  basesocket
 
class  clientsocket
 
class  serversocket
 
class  datagramsocket
 
class  filesocket
 
class  fileserversocket
 
class  tcpsocket
 
class  tcpserversocket
 
class  udpsocket
 
class  multicastsocket
 
class  stream_exception
 
class  socketstream
 
class  stopandwait
 
class  vaddress
 
class  vinterface
 
class  vsocket_timeout
 
class  vsocket_interrupt
 
class  vsocket
 
class  AES128Stream
 
class  CipherStream
 
class  HashStream
 
class  HMacStream
 
class  InputCipherStream
 
class  iostreamBIO
 This class is a wrapper for iostreams to the OpenSSL Input Output abstraction Layer (called BIO) More...
 
class  RSASHA256Stream
 
class  TLSStream
 A Stream Class that adds Signatures and Encryption through TLS. More...
 
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  QueueUnblockedException
 
class  Queue
 
class  RWLock
 
class  RWMutex
 
class  Semaphore
 
class  SharedReference
 
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
 
typedef std::set< basesocket * > socketset
 

Enumerations

enum  socket_error_code {
  ERROR_NONE = 0, ERROR_EPIPE = 1, ERROR_CLOSED = 2, ERROR_WRITE = 3,
  ERROR_READ = 4, ERROR_RESET = 5, ERROR_AGAIN = 6
}
 
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)
 
vaddress rtnl_addr_get_local_vaddress (struct rtnl_addr *obj)
 
void add_addr_to_list (struct nl_object *obj, void *data)
 
void __copy_device_address (struct in_addr *inaddr, const vinterface &iface)
 
int __compat_select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
 
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 38 of file BloomFilter.h.

typedef unsigned char ibrcommon::cell_type

Definition at line 39 of file BloomFilter.h.

typedef std::set<basesocket*> ibrcommon::socketset

socketset is used for socket select calls and managing the socket instances

Definition at line 42 of file vsocket.h.

Enumeration Type Documentation

Enumerator
ERROR_NONE 
ERROR_EPIPE 
ERROR_CLOSED 
ERROR_WRITE 
ERROR_READ 
ERROR_RESET 
ERROR_AGAIN 

Definition at line 34 of file socket.h.

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::__compat_select ( int  nfds,
fd_set *  readfds,
fd_set *  writefds,
fd_set *  exceptfds,
struct timeval *  timeout 
)

Definition at line 50 of file vsocket.cpp.

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

Referenced by ibrcommon::vsocket::select().

Here is the call graph for this function:

void ibrcommon::__copy_device_address ( struct in_addr *  inaddr,
const vinterface &  iface 
)

Definition at line 1125 of file socket.cpp.

References ibrcommon::vaddress::address(), and ibrcommon::vinterface::getAddresses().

Here is the call graph for this function:

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

Definition at line 188 of file NetLinkManager.cpp.

References rtnl_addr_get_local_vaddress().

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

Here is the call graph for this function:

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

Definition at line 71 of file SyslogStream.cpp.

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

Here is the call graph for this function:

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

Definition at line 100 of file TimeMeasurement.cpp.

References ibrcommon::TimeMeasurement::format(), and ibrcommon::TimeMeasurement::getTime().

Here is the call graph for this function:

std::istream& ibrcommon::operator>> ( std::istream &  is,
ConfigFile &  cf 
)
vaddress ibrcommon::rtnl_addr_get_local_vaddress ( struct rtnl_addr *  obj)

Variable Documentation

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

Definition at line 28 of file SyslogStream.cpp.

Referenced by operator<<().