Event Loop
Processes io_handles, notifies of changes
that have been registered for listen. This could
be a pipe, socket, or really anything.
Channel
4
Slot 1
1
socket_handler
interfaces with the event loop
and platform-specific io apis
Slot 2
1
tls_handler
handles negotiation, and then
decrypts incoming data,
encrypts outgoing data
Interfaces with the platform specific
TLS implementation.
Slot 3
1
application_protocol_handler
Figures out framing,
runs state machinery,
exposes API to user.
User/Application
Completion Promise