MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / context

Class context

3rd/asio-1.24.0/include/asio/ssl/context.hpp:35–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33namespace ssl {
34
35class context
36 : public context_base,
37 private noncopyable
38{
39public:
40 /// The native handle type of the SSL context.
41 typedef SSL_CTX* native_handle_type;
42
43 /// Constructor.
44 ASIO_DECL explicit context(method m);
45
46 /// Construct to take ownership of a native handle.
47 ASIO_DECL explicit context(native_handle_type native_handle);
48
49#if defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
50 /// Move-construct a context from another.
51 /**
52 * This constructor moves an SSL context from one object to another.
53 *
54 * @param other The other context object from which the move will occur.
55 *
56 * @note Following the move, the following operations only are valid for the
57 * moved-from object:
58 * @li Destruction.
59 * @li As a target for move-assignment.
60 */
61 ASIO_DECL context(context&& other);
62
63 /// Move-assign a context from another.
64 /**
65 * This assignment operator moves an SSL context from one object to another.
66 *
67 * @param other The other context object from which the move will occur.
68 *
69 * @note Following the move, the following operations only are valid for the
70 * moved-from object:
71 * @li Destruction.
72 * @li As a target for move-assignment.
73 */
74 ASIO_DECL context& operator=(context&& other);
75#endif // defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
76
77 /// Destructor.
78 ASIO_DECL ~context();
79
80 /// Get the underlying implementation in the native type.
81 /**
82 * This function may be used to obtain the underlying implementation of the
83 * context. This is intended to allow access to context functionality that is
84 * not otherwise provided.
85 */
86 ASIO_DECL native_handle_type native_handle();
87
88 /// Clear options on the context.
89 /**
90 * This function may be used to configure the SSL options used by the context.
91 *
92 * @param o A bitmask of options. The available option values are defined in

Callers 3

on_work_startedMethod · 0.50
on_work_finishedMethod · 0.50
io_context.hppFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected