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

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

#include <has_context.hpp>

Inherits Base.

Public Member Functions

Subtype & context (ssl::context ctx)
 Sets the optional SSL context.
 
Subtype & context (expected< ssl::context > ctx)
 Sets the optional SSL context.
 

Detailed Description

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

DSL entry point for creating a server.

Member Function Documentation

◆ context() [1/2]

template<class Base , class Subtype >
Subtype & caf::net::dsl::has_context< Base, Subtype >::context ( expected< ssl::context > ctx)

Sets the optional SSL context.

Parameters
ctxThe SSL context for encryption. Passing an expected with a default-constructed error results in a no-op.
Returns
a reference to *this.

◆ context() [2/2]

template<class Base , class Subtype >
Subtype & caf::net::dsl::has_context< Base, Subtype >::context ( ssl::context ctx)

Sets the optional SSL context.

Parameters
ctxThe SSL context for encryption.
Returns
a reference to *this.

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