Conscience Core
Classes | Namespaces | Macros | Typedefs | Functions
TcpClient.cpp File Reference
#include "Communication/TcpClient.h"
#include "Util/system.h"
#include "Util/os.h"
#include "Communication/TcpServer.h"
#include <cerrno>
#include <boost/asio.hpp>
#include <sys/socket.h>

Classes

struct  conscience_core::communication::ReadUntilWithTimeoutContext
 

Namespaces

 conscience_core
 
 conscience_core::communication
 

Macros

#define MAX_SEC_TIME_TCP_FOR_RECV_SEND   40
 
#define TCP_MESSAGE_END_MARK   "\n-__cst__-\n"
 

Typedefs

using Executor = boost::asio::io_context::executor_type
 
using Strand = boost::asio::strand< Executor >
 

Functions

TcpClient::ExistingSocket conscience_core::communication::createSocketFromIpAndPort (const string &ipAddress, unsigned int port, AsioContext *asioContext)
 
static size_t conscience_core::communication::readUntilWithTimeout (ptr< TcpClient::AsioState > st, boost::asio::streambuf &buffers, const std::string &boundary, unsigned long long timeoutMillis)
 

Macro Definition Documentation

◆ MAX_SEC_TIME_TCP_FOR_RECV_SEND

#define MAX_SEC_TIME_TCP_FOR_RECV_SEND   40

◆ TCP_MESSAGE_END_MARK

#define TCP_MESSAGE_END_MARK   "\n-__cst__-\n"

Typedef Documentation

◆ Executor

using Executor = boost::asio::io_context::executor_type

◆ Strand

using Strand = boost::asio::strand<Executor>