RESTinio
Loading...
Searching...
No Matches
restinio
timer_common.hpp
Go to the documentation of this file.
1
/*
2
restinio
3
*/
4
5
/*!
6
A base class for all classes that deal with connection context.
7
*/
8
9
#
pragma
once
10
11
#
include
<
restinio
/
tcp_connection_ctx_base
.
hpp
>
12
13
namespace
restinio
14
{
15
16
// A weak pointer to a context object that is shceduled to be invoked at some time point.
17
using
tcp_connection_ctx_weak_handle_t
= std::weak_ptr<
tcp_connection_ctx_base_t
>;
18
19
//! An invokation tag, for controlling no more actual timers in corner cases.
20
using
timer_invocation_tag_t
= std::
uint32_t
;
21
22
//! A pointer to invocation callback for a specific context object.
23
using
timer_invocation_cb_t
=
24
std
::
add_pointer
<
void
(
timer_invocation_tag_t
,
tcp_connection_ctx_weak_handle_t
) >::
type
25
;
26
27
}
/* namespace restinio */
restinio::tcp_connection_ctx_base_t
TCP connection base.
Definition
tcp_connection_ctx_base.hpp:29
restinio
Definition
sendfile_operation_default.ipp:12
restinio::timer_invocation_tag_t
std::uint32_t timer_invocation_tag_t
An invokation tag, for controlling no more actual timers in corner cases.
Definition
timer_common.hpp:20
restinio::tcp_connection_ctx_weak_handle_t
std::weak_ptr< tcp_connection_ctx_base_t > tcp_connection_ctx_weak_handle_t
Alias for http connection weak handle.
Definition
tcp_connection_ctx_base.hpp:65
Generated by
1.14.0