C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::net::dsl::has_connect< Base, Subtype > Class Template Reference

DSL entry point for creating a client. More...

#include <has_connect.hpp>

Inherits Base.

Public Member Functions

auto connect (std::string host, uint16_t port)
 Creates a connect_factory object for the given TCP host and port.
 
auto connect (stream_socket fd)
 Creates a connect_factory object for the given stream fd.
 
auto connect (ssl::connection conn)
 Creates a connect_factory object for the given SSL connection.
 

Detailed Description

template<class Base, class Subtype>
class caf::net::dsl::has_connect< Base, Subtype >

DSL entry point for creating a client.

Member Function Documentation

◆ connect() [1/3]

template<class Base , class Subtype >
auto caf::net::dsl::has_connect< Base, Subtype >::connect ( ssl::connection conn)

Creates a connect_factory object for the given SSL connection.

Parameters
connThe SSL connection to use.
Returns
a connect_factory object that will use the given connection.

◆ connect() [2/3]

template<class Base , class Subtype >
auto caf::net::dsl::has_connect< Base, Subtype >::connect ( std::string host,
uint16_t port )

Creates a connect_factory object for the given TCP host and port.

Parameters
hostThe hostname or IP address to connect to.
portThe port number to connect to.
Returns
a connect_factory object initialized with the given parameters.

◆ connect() [3/3]

template<class Base , class Subtype >
auto caf::net::dsl::has_connect< Base, Subtype >::connect ( stream_socket fd)

Creates a connect_factory object for the given stream fd.

Parameters
fdThe stream socket to use for the connection.
Returns
a connect_factory object that will use the given socket.

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