CARLA
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
Sockets.h File Reference
#include <cstdint>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>
#include <cstdlib>

Go to the source code of this file.

Namespaces

namespace  carla
 This file contains definitions of common data structures used in traffic manager.
 

Macros

#define SOCK_INVALID_INDEX   -1
 < socket sockaddr_in
 

Functions

void carla::SetCloseOnExecForListeningPort (uint16_t Port)
 Fallback for listening sockets we have no direct handle to (e.g.
 
template<typename NativeHandle >
void carla::SetSocketCloseOnExec (NativeHandle fd)
 Marks a socket file descriptor close-on-exec, so it is not inherited by child processes started via fork+exec (e.g.
 

Macro Definition Documentation

◆ SOCK_INVALID_INDEX

#define SOCK_INVALID_INDEX   -1

< socket sockaddr_in

< getsockname < close < fcntl, FD_CLOEXEC < opendir, readdir < strtol

Definition at line 24 of file Sockets.h.