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 27 of file SocketAcceptor.h.

Member Typedef Documentation

◆ PhysicalSocket

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

Definition at line 43 of file SocketConnection.h.

◆ SocketAddress

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

Definition at line 48 of file SocketConnection.h.

◆ SocketReader

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

Definition at line 44 of file SocketConnection.h.

◆ SocketWriter

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

Definition at line 45 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 40 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 32 of file SocketConnection.hpp.

43 : Super(
44 instanceName,
45 std::move(physicalSocket),
46 [onDisconnect, this]() {
47 onDisconnect(this);
48 },
49 configuredServer,
50 localAddress,
51 remoteAddress,
52 readTimeout,
53 writeTimeout,
54 readBlockSize,
55 writeBlockSize,
56 terminateTimeout) {
57 }
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 63 of file SocketConnection.h.

◆ SocketConnector

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

Definition at line 66 of file SocketConnection.h.


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