SNode.C
Loading...
Searching...
No Matches
core::socket::stream::legacy::SocketConnection< PhysicalSocketT > Class Template Reference

#include <SocketConnection.h>

Inheritance diagram for core::socket::stream::legacy::SocketConnection< PhysicalSocketT >:
Collaboration diagram for core::socket::stream::legacy::SocketConnection< PhysicalSocketT >:

Public Types

using SocketAddress = typename Super::SocketAddress
 

Public Member Functions

 SocketConnection (const std::string &instanceName, PhysicalSocket &&physicalSocket, const std::function< void(SocketConnection *)> &onDisconnect, const std::string &configuredServer, const SocketAddress &localAddress, const SocketAddress &remoteAddress, const utils::Timeval &readTimeout, const utils::Timeval &writeTimeout, std::size_t readBlockSize, std::size_t writeBlockSize, const utils::Timeval &terminateTimeout)
 

Private Types

using Super
 
using PhysicalSocket = PhysicalSocketT
 
using SocketReader = typename Super::SocketReader
 
using SocketWriter = typename Super::SocketWriter
 

Friends

template<typename PhysicalSocket , typename Config >
class SocketAcceptor
 
template<typename PhysicalSocket , typename Config >
class SocketConnector
 

Detailed Description

template<typename PhysicalSocketT>
class core::socket::stream::legacy::SocketConnection< PhysicalSocketT >

Definition at line 49 of file SocketAcceptor.h.

Member Typedef Documentation

◆ PhysicalSocket

template<typename PhysicalSocketT >
using core::socket::stream::legacy::SocketConnection< PhysicalSocketT >::PhysicalSocket = PhysicalSocketT
private

Definition at line 65 of file SocketConnection.h.

◆ SocketAddress

template<typename PhysicalSocketT >
using core::socket::stream::legacy::SocketConnection< PhysicalSocketT >::SocketAddress = typename Super::SocketAddress

Definition at line 70 of file SocketConnection.h.

◆ SocketReader

template<typename PhysicalSocketT >
using core::socket::stream::legacy::SocketConnection< PhysicalSocketT >::SocketReader = typename Super::SocketReader
private

Definition at line 66 of file SocketConnection.h.

◆ SocketWriter

template<typename PhysicalSocketT >
using core::socket::stream::legacy::SocketConnection< PhysicalSocketT >::SocketWriter = typename Super::SocketWriter
private

Definition at line 67 of file SocketConnection.h.

◆ Super

template<typename PhysicalSocketT >
using core::socket::stream::legacy::SocketConnection< PhysicalSocketT >::Super
private
Initial value:
core::socket::stream::
SocketConnectionT<PhysicalSocketT, core::socket::stream::legacy::SocketReader, core::socket::stream::legacy::SocketWriter>

Definition at line 62 of file SocketConnection.h.

Constructor & Destructor Documentation

◆ SocketConnection()

template<typename PhysicalSocket >
core::socket::stream::legacy::SocketConnection< PhysicalSocket >::SocketConnection ( const std::string & instanceName,
PhysicalSocket && physicalSocket,
const std::function< void(SocketConnection< PhysicalSocketT > *)> & onDisconnect,
const std::string & configuredServer,
const SocketAddress & localAddress,
const SocketAddress & remoteAddress,
const utils::Timeval & readTimeout,
const utils::Timeval & writeTimeout,
std::size_t readBlockSize,
std::size_t writeBlockSize,
const utils::Timeval & terminateTimeout )

Definition at line 54 of file SocketConnection.hpp.

65 : Super(
66 instanceName,
67 std::move(physicalSocket),
68 [onDisconnect, this]() {
69 onDisconnect(this);
70 },
71 configuredServer,
72 localAddress,
73 remoteAddress,
74 readTimeout,
75 writeTimeout,
76 readBlockSize,
77 writeBlockSize,
78 terminateTimeout) {
79 }
core::socket::stream:: SocketConnectionT< PhysicalSocketT, core::socket::stream::legacy::SocketReader, core::socket::stream::legacy::SocketWriter > Super

References core::socket::stream::legacy::SocketConnection< PhysicalSocketT >::SocketConnection().

Referenced by core::socket::stream::legacy::SocketConnection< PhysicalSocketT >::SocketConnection().

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ SocketAcceptor

template<typename PhysicalSocketT >
template<typename PhysicalSocket , typename Config >
friend class SocketAcceptor
friend

Definition at line 85 of file SocketConnection.h.

◆ SocketConnector

template<typename PhysicalSocketT >
template<typename PhysicalSocket , typename Config >
friend class SocketConnector
friend

Definition at line 88 of file SocketConnection.h.


The documentation for this class was generated from the following files: