A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
creator-utils.h File Reference
#include <unistd.h>
#include <string>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <stdlib.h>
#include <errno.h>
#include <sys/socket.h>
+ Include dependency graph for creator-utils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Macros

#define ABORT(msg, printErrno)
 
#define ABORT_IF(cond, msg, printErrno)
 
#define LOG(msg)
 

Functions

void ns3::SendSocket (const char *path, int fd, const int magic_number)
 Send the file descriptor back to the code that invoked the creation. More...
 

Macro Definition Documentation

#define ABORT (   msg,
  printErrno 
)
Value:
std::cout << __FILE__ << ": fatal error at line " << __LINE__ << ": " << __FUNCTION__ << "(): " << msg << std::endl; \
if (printErrno) \
{ \
std::cout << " errno = " << errno << " (" << strerror (errno) << ")" << std::endl; \
} \
exit (-1);

Definition at line 42 of file creator-utils.h.

#define ABORT_IF (   cond,
  msg,
  printErrno 
)
Value:
if (cond) \
{ \
ABORT (msg, printErrno); \
}
#define ABORT(msg, printErrno)
Definition: creator-utils.h:42

Definition at line 50 of file creator-utils.h.

#define LOG (   msg)
Value:
if (gVerbose) \
{ \
std::cout << __FUNCTION__ << "(): " << msg << std::endl; \
}
static int gVerbose

Definition at line 36 of file creator-utils.h.