IBR-DTNSuite  0.12
socket.cpp File Reference
#include "ibrcommon/config.h"
#include "ibrcommon/net/socket.h"
#include "ibrcommon/net/vsocket.h"
#include "ibrcommon/Logger.h"
#include <arpa/inet.h>
#include <sys/select.h>
#include <netinet/tcp.h>
#include <sys/un.h>
#include <sys/socket.h>
#include <netdb.h>
#include <string.h>
#include <fcntl.h>
#include <sys/time.h>
#include <unistd.h>
#include <sstream>
#include <cassert>
Include dependency graph for socket.cpp:

Go to the source code of this file.

Namespaces

 ibrcommon
 

Constant Groups

 ibrcommon
 

Macros

#define bzero(s, n)   (memset((s), '\0', (n)), (void) 0)
 
#define __compat_setsockopt   ::setsockopt
 
#define __init_sockets   void
 
#define __close   ::close
 
#define __errno   errno
 

Functions

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

Macro Definition Documentation

#define __init_sockets   void

Definition at line 87 of file socket.cpp.

Referenced by ibrcommon::basesocket::basesocket(), and ibrcommon::initialize_socket().

#define bzero (   s,
 
)    (memset((s), '\0', (n)), (void) 0)

Definition at line 52 of file socket.cpp.

Referenced by ibrcommon::lowpansocket::sendto(), and ibrcommon::lowpansocket::up().