TrinityCore
Loading...
Searching...
No Matches
Trinity::Net::Impl::Operations::Connect< Socket > Struct Template Reference

#include <Socket.h>

Public Member Functions

 Connect (std::shared_ptr< Socket > const &socketRef, boost::asio::ip::tcp::endpoint const &endpoint)
 
 Connect (std::shared_ptr< Socket > const &socketRef, std::vector< boost::asio::ip::tcp::endpoint > const &endpoints)
 
template<typename Handler >
void operator() (Handler &handler, boost::system::error_code error={})
 

Static Public Member Functions

static void HandleError (Socket *self, std::string_view message)
 

Public Attributes

std::shared_ptr< ConnectStateState
 

Detailed Description

template<typename Socket>
struct Trinity::Net::Impl::Operations::Connect< Socket >

Definition at line 421 of file Socket.h.

Constructor & Destructor Documentation

◆ Connect() [1/2]

template<typename Socket >
Trinity::Net::Impl::Operations::Connect< Socket >::Connect ( std::shared_ptr< Socket > const &  socketRef,
boost::asio::ip::tcp::endpoint const &  endpoint 
)
inlineexplicit

Definition at line 423 of file Socket.h.

◆ Connect() [2/2]

template<typename Socket >
Trinity::Net::Impl::Operations::Connect< Socket >::Connect ( std::shared_ptr< Socket > const &  socketRef,
std::vector< boost::asio::ip::tcp::endpoint > const &  endpoints 
)
inlineexplicit

Definition at line 426 of file Socket.h.

Member Function Documentation

◆ HandleError()

template<typename Socket >
static void Trinity::Net::Impl::Operations::Connect< Socket >::HandleError ( Socket self,
std::string_view  message 
)
inlinestatic

Definition at line 482 of file Socket.h.

+ Here is the call graph for this function:

◆ operator()()

template<typename Socket >
template<typename Handler >
void Trinity::Net::Impl::Operations::Connect< Socket >::operator() ( Handler &  handler,
boost::system::error_code  error = {} 
)
inline

Definition at line 432 of file Socket.h.

Member Data Documentation

◆ State

template<typename Socket >
std::shared_ptr<ConnectState> Trinity::Net::Impl::Operations::Connect< Socket >::State

Definition at line 429 of file Socket.h.


The documentation for this struct was generated from the following file: