MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ pop()

template<typename Transport>
void MayaFlux::Core::StreamBackend< Transport >::ConnectionState::pop ( )
inline

Definition at line 268 of file StreamBackend.hpp.

269 {
270 outbox[outbox_head++].reset();
271 if (outbox_head == outbox.size()) {
272 outbox.clear();
273 outbox_head = 0;
274 } else if (outbox_head >= 64 && outbox_head * 2 >= outbox.size()) {
275 outbox.erase(outbox.begin(), outbox.begin() + static_cast<std::ptrdiff_t>(outbox_head));
276 outbox_head = 0;
277 }
278 }
Connection-oriented reliable message transport over an Asio stream protocol.

References outbox, and outbox_head.