5 #ifndef ZIO_FLOW_HPP_SEEN 6 #define ZIO_FLOW_HPP_SEEN 72 bool get(
Message& dat,
int timeout=-1);
113 int m_credit, m_total_credit;
121 int m_send_seqno{-1};
122 int m_recv_seqno{-1};
bool recv_eot(Message &msg, int timeout=-1)
Receive an EOT.
Flow(portptr_t port)
create a flow.
void send_eot(Message &msg)
send EOT.
bool put(Message &dat)
put a payload message into the flow
std::shared_ptr< Port > portptr_t
The context can't be copied and ports like to be shared.
bool recv_bot(Message &bot, int timeout=-1)
receive a BOT
int slurp_pay(int timeout)
recv any waiting PAY messages
void send_bot(Message &bot)
send a BOT
implementation of ZIO data flow protocol endpoints
int flush_pay()
send any accumulated credit as a PAY