#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netdb.h>
#include <netinet/in.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <system_error>
#include "utils.h"
Go to the source code of this file.
◆ _GNU_SOURCE
◆ findFreeTcpPort()
◆ setupSigPipe()
◆ socketAccept()
| int socketAccept |
( |
int |
fd | ) |
|
◆ tcpSocketConnect()
| int tcpSocketConnect |
( |
const std::string & |
host, |
|
|
int |
port, |
|
|
bool |
failAllowed |
|
) |
| |
◆ tcpSocketListen()
| int tcpSocketListen |
( |
int |
port | ) |
|
◆ tcpSocketPort()
| int tcpSocketPort |
( |
int |
fd | ) |
|
◆ uniqueTestName()
| std::string uniqueTestName |
( |
const std::string & |
prefix | ) |
|
◆ unixSocketConnect()
| int unixSocketConnect |
( |
const std::string & |
unixAddr, |
|
|
bool |
failAllowed |
|
) |
| |
◆ unixSocketListen()
| int unixSocketListen |
( |
const std::string & |
unixAddr | ) |
|
◆ unixSocketRecvFds()
| void unixSocketRecvFds |
( |
int |
fd, |
|
|
int |
count, |
|
|
int * |
fdsDest |
|
) |
| |
◆ unixSocketSendFds()
| void unixSocketSendFds |
( |
int |
fd, |
|
|
int |
count, |
|
|
int * |
fds |
|
) |
| |