top | up | prev | next

SocketConnection Class

Definition at line 15 of SocketConnection.hpp

Constructors

SocketConnection(Log* log, Host* host_, TcpSocket&& socket_)

Member Functions

void DoClose() override
std::unique_ptr<JsonObject> DoReceive() override
void DoSend(JsonObject* messageObject) override
const std::string& GetActor() const override
Host* GetHost() const override

Member Variables

Host* host
TcpSocket socket

Constructor Details

SocketConnection Constructor

cmajor::build::SocketConnection::SocketConnection(Log * log, Host * host_, TcpSocket&& socket_)

Definition at line 19 of SocketConnection.cpp :
19 : Connection(log)host(host_)socket(std::move(socket_))
20 {
21 }


Declaration at line 18 of SocketConnection.hpp


Member Function Details

DoClose Member Function

void cmajor::build::SocketConnection::DoClose() override

Definition at line 76 of SocketConnection.cpp
Declaration at line 21 of SocketConnection.hpp

Base class overridden functions: cmajor::build::Connection::DoClose

Calls: cmajor::build::Connection::Close , cmajor::build::Host::Exit , cmajor::build::Host::Name


DoReceive Member Function

std::unique_ptr<JsonObject> cmajor::build::SocketConnection::DoReceive() override

Definition at line 49 of SocketConnection.cpp
Declaration at line 20 of SocketConnection.hpp

Base class overridden functions: cmajor::build::Connection::DoReceive

Calls: cmajor::build::Host::Name


DoSend Member Function

void cmajor::build::SocketConnection::DoSend(JsonObject* messageObject) override

Definition at line 28 of SocketConnection.cpp
Declaration at line 19 of SocketConnection.hpp

Base class overridden functions: cmajor::build::Connection::DoSend

Calls: cmajor::build::Host::Name


GetActor Member Function

const std::string& cmajor::build::SocketConnection::GetActor() const override

Definition at line 23 of SocketConnection.cpp :
24 {
25     return host->Name();
26 }


Declaration at line 22 of SocketConnection.hpp

Base class overridden functions: cmajor::build::Connection::GetActor

Calls: cmajor::build::Host::Name


GetHost Member Function

Host * cmajor::build::SocketConnection::GetHost() const override

Definition at line 23 of SocketConnection.hpp :
23 { return host; }

Base class overridden functions: cmajor::build::Connection::GetHost


top | up | prev | next