Namespace faabric::transport::tcp
-
namespace tcp
Functions
-
void setReuseAddr(int connFd)
-
void setNoDelay(int connFd)
-
void setQuickAck(int connFd)
-
void setNonBlocking(int connFd)
-
void setBlocking(int connFd)
-
bool isNonBlocking(int connFd)
-
void setBusyPolling(int connFd)
-
void setRecvTimeoutMs(int connFd, int timeoutMs)
-
void setSendTimeoutMs(int connFd, int timeoutMs)
-
void setRecvBufferSize(int connFd, size_t bufferSizeBytes)
-
void setSendBufferSize(int connFd, size_t bufferSizeBytes)
Variables
-
const int SocketTimeoutMs = 5000
-
const size_t SocketBufferSizeBytes = 16777216
-
class Address
Public Functions
-
Address(const std::string &host, int port)
-
Address(int port)
-
sockaddr *get() const
-
Address(const std::string &host, int port)
-
class RecvSocket
Public Functions
-
RecvSocket(int port, const std::string &host = ANY_HOST)
-
RecvSocket(const RecvSocket &recvSocket) = delete
-
~RecvSocket()
-
void listen()
-
int accept()
-
void recvOne(int conn, uint8_t *buffer, size_t bufferSize)
-
RecvSocket(int port, const std::string &host = ANY_HOST)
-
class SendSocket
Public Functions
-
SendSocket(const std::string &host, int port)
-
void dial()
-
void sendOne(const uint8_t *buffer, size_t bufferSize)
-
SendSocket(const std::string &host, int port)
-
class Socket
Public Functions
-
Socket()
-
Socket(int connFd)
-
Socket(const Socket &socket) = delete
-
~Socket()
-
inline int get() const
-
Socket()
-
void setReuseAddr(int connFd)