#include <context.h>
Definition at line 45 of file context.h.
◆ context()
Definition at line 48 of file context.h.
49 : router_m{r}
50 , ctx_m{std::move(c)}
51 , sock_m{s}
52 {
53 }
◆ ~context()
| pars::net::context::~context |
( |
| ) |
|
|
inline |
◆ format_to()
| auto pars::net::context::format_to |
( |
std::format_context & | ctx | ) |
const -> decltype(ctx.out())
|
|
inline |
Definition at line 94 of file context.h.
95 {
96 return std::format_to(
ctx.out(),
"context #{}",
id());
97 }
◆ id()
| int pars::net::context::id |
( |
| ) |
const |
|
inline |
◆ operator tool_view()
Definition at line 57 of file context.h.
57{ return tool_view{ctx_m}; }
◆ options()
Definition at line 68 of file context.h.
69 {
70 return {.recv_timeout = ctx_m.get_recv_timeout().value_or_abort(),
71 .send_timeout = ctx_m.get_send_timeout().value_or_abort()};
72 }
◆ recv()
| void pars::net::context::recv |
( |
| ) |
|
|
inline |
◆ recv_aio()
◆ send()
template<ev::event_c event_t>
| void pars::net::context::send |
( |
event_t | ev, |
|
|
pipe | p ) |
|
inline |
Definition at line 79 of file context.h.
80 {
81 op_m.send(router_m, *this, p, ev);
82 }
◆ send_aio()
◆ set_options()
| void pars::net::context::set_options |
( |
context_opt | opts | ) |
|
|
inline |
◆ sock()
◆ socket_id()
| int pars::net::context::socket_id |
( |
| ) |
const |
|
inline |
Definition at line 90 of file context.h.
90{ return sock_m.id(); }
◆ stop()
| void pars::net::context::stop |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file:
- /home/runner/work/pars-cxx/pars-cxx/lib/include/pars/net/context.h