#include <cstring>
#include <errno.h>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <stdlib.h>
#include <string>
#include <sys/socket.h>
#include <unistd.h>
Go to the source code of this file.
|  | 
| namespace | ns3 | 
|  | Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 | 
|  | 
| #define | ABORT(msg,  printErrno) | 
| #define | ABORT_IF(cond,  msg,  printErrno) | 
| #define | LOG(msg) | 
|  | 
| void | ns3::SendSocket (const char *path, int fd, const int magic_number) | 
|  | Send the file descriptor back to the code that invoked the creation. 
 | 
◆ ABORT
      
        
          | #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 31 of file creator-utils.h.
 
 
◆ ABORT_IF
      
        
          | #define ABORT_IF | ( |  | cond, | 
        
          |  |  |  | msg, | 
        
          |  |  |  | printErrno ) | 
      
 
 
◆ LOG
Value:
    {                                                                                              \
        std::cout << __FUNCTION__ << "(): " << msg << std::endl;                                   \
    }
 
Definition at line 25 of file creator-utils.h.