IBR-DTNSuite
0.12
|
#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>
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) |
#define __close ::close |
Definition at line 88 of file socket.cpp.
Referenced by ibrcommon::basesocket::close(), ibrcommon::basesocket::hasSupport(), ibrcommon::fileserversocket::up(), ibrcommon::tcpsocket::up(), ibrcommon::tcpserversocket::up(), and ibrcommon::udpsocket::up().
#define __compat_setsockopt ::setsockopt |
Definition at line 86 of file socket.cpp.
Referenced by ibrcommon::multicastsocket::down(), ibrcommon::basesocket::set_keepalive(), ibrcommon::basesocket::set_linger(), ibrcommon::basesocket::set_nodelay(), ibrcommon::basesocket::set_reuseaddr(), and ibrcommon::multicastsocket::up().
#define __errno errno |
Definition at line 89 of file socket.cpp.
Referenced by ibrcommon::basesocket::bind(), ibrcommon::basesocket::init_socket(), ibrcommon::clientsocket::recv(), ibrcommon::clientsocket::send(), ibrcommon::datagramsocket::sendto(), and ibrcommon::tcpsocket::up().
#define __init_sockets void |
Definition at line 87 of file socket.cpp.
Referenced by ibrcommon::basesocket::basesocket(), and ibrcommon::initialize_socket().
#define bzero | ( | s, | |
n | |||
) | (memset((s), '\0', (n)), (void) 0) |
Definition at line 52 of file socket.cpp.
Referenced by ibrcommon::lowpansocket::sendto(), and ibrcommon::lowpansocket::up().