Instrument Neutral Distributed Interface INDI 2.2.5
utils.h File Reference
#include <string>

Go to the source code of this file.

Functions

void setupSigPipe ()
int unixSocketListen (const std::string &path)
int unixSocketConnect (const std::string &unixAddr, bool failAllowed=false)
void unixSocketSendFds (int fd, int count, int *fds)
void unixSocketRecvFds (int fd, int count, int *fds)
int tcpSocketListen (int port)
int tcpSocketConnect (const std::string &unixAddr, int port, bool failAllowed=false)
int socketAccept (int fd)
int tcpSocketPort (int fd)
int findFreeTcpPort ()
std::string uniqueTestName (const std::string &prefix)

Function Documentation

◆ findFreeTcpPort()

int findFreeTcpPort ( )

Definition at line 351 of file utils.cpp.

◆ setupSigPipe()

void setupSigPipe ( )

Definition at line 37 of file utils.cpp.

◆ socketAccept()

int socketAccept ( int fd)

Definition at line 144 of file utils.cpp.

◆ tcpSocketConnect()

int tcpSocketConnect ( const std::string & unixAddr,
int port,
bool failAllowed = false )

Definition at line 301 of file utils.cpp.

◆ tcpSocketListen()

int tcpSocketListen ( int port)

Definition at line 108 of file utils.cpp.

◆ tcpSocketPort()

int tcpSocketPort ( int fd)

Definition at line 340 of file utils.cpp.

◆ uniqueTestName()

std::string uniqueTestName ( const std::string & prefix)

Definition at line 360 of file utils.cpp.

◆ unixSocketConnect()

int unixSocketConnect ( const std::string & unixAddr,
bool failAllowed = false )

Definition at line 155 of file utils.cpp.

◆ unixSocketListen()

int unixSocketListen ( const std::string & path)

Definition at line 71 of file utils.cpp.

◆ unixSocketRecvFds()

void unixSocketRecvFds ( int fd,
int count,
int * fds )

Definition at line 228 of file utils.cpp.

◆ unixSocketSendFds()

void unixSocketSendFds ( int fd,
int count,
int * fds )

Definition at line 183 of file utils.cpp.