ZIO
Python and C++ interface to ZeroMQ and Zyre
Classes | Functions | Variables
test_sml.cpp File Reference
#include <iostream>
#include <cassert>
#include "sml.hpp"
Include dependency graph for test_sml.cpp:

Go to the source code of this file.

Classes

struct  sender
 
struct  ack
 
struct  fin
 
struct  release
 
struct  timeout
 
struct  tcp_release
 

Functions

int main ()
 

Variables

constexpr auto is_valid = [](const auto& event) { return event.valid; }
 
constexpr auto send_fin = [](sender& s) { s.send(fin{0}); }
 
constexpr auto send_ack = [](const auto& event, sender& s) { s.send(event); }
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 49 of file test_sml.cpp.

Variable Documentation

◆ is_valid

constexpr auto is_valid = [](const auto& event) { return event.valid; }

Definition at line 22 of file test_sml.cpp.

◆ send_ack

constexpr auto send_ack = [](const auto& event, sender& s) { s.send(event); }

Definition at line 27 of file test_sml.cpp.

◆ send_fin

constexpr auto send_fin = [](sender& s) { s.send(fin{0}); }

Definition at line 26 of file test_sml.cpp.