C++ Actor Framework 0.19
Loading...
Searching...
No Matches
Public Member Functions | List of all members
caf::net::dsl::has_connect< Base, Subtype > Class Template Reference

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

#include <has_connect.hpp>

Inheritance diagram for caf::net::dsl::has_connect< Base, Subtype >:
caf::net::dsl::has_uri_connect< Base, Subtype >

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: