Skip to content

Instantly share code, notes, and snippets.

View brettviren's full-sized avatar

Brett Viren brettviren

View GitHub Profile
@indiosmo
indiosmo / fsm.hpp
Created August 14, 2018 01:58
SML - Hierarchical Machine
struct client_protocol
{
// clang-format off
// public interface
struct ev_connect{};
struct ev_disconnect{};
// connection handlers
struct ev_error{};