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

DSL entry point for creating a client from an URI. More...

#include <has_uri_connect.hpp>

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

Public Types

using super = has_connect< Base, Subtype >
 

Public Member Functions

auto connect (const uri &endpoint)
 Creates a connect_factory object for the given TCP endpoint.
 
auto connect (expected< uri > endpoint)
 Creates a connect_factory object for the given TCP endpoint.
 
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.
 
- Public Member Functions inherited from caf::net::dsl::has_connect< Base, Subtype >
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_uri_connect< Base, Subtype >

DSL entry point for creating a client from an URI.

Member Function Documentation

◆ connect() [1/5]

template<class Base , class Subtype >
auto caf::net::dsl::has_uri_connect< Base, Subtype >::connect ( const uri endpoint)

Creates a connect_factory object for the given TCP endpoint.

Parameters
endpointThe endpoint of the TCP server to connect to.
Returns
a connect_factory object initialized with the given parameters.

◆ connect() [2/5]

template<class Base , class Subtype >
auto caf::net::dsl::has_uri_connect< Base, Subtype >::connect ( expected< uri endpoint)

Creates a connect_factory object for the given TCP endpoint.

Parameters
endpointThe endpoint of the TCP server to connect to.
Returns
a connect_factory object initialized with the given parameters.

◆ connect() [3/5]

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() [4/5]

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() [5/5]

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: