27 #ifndef PROTOBUF_BROKER_H
28 #define PROTOBUF_BROKER_H
36 #include <arpa/inet.h>
38 #include "caf/all.hpp"
39 #include "caf/io/all.hpp"
43 #include "message.pb.h"
48 using namespace caf::io;
60 static void startClient (uint16_t port,
const string& host);
67 static void startServer (uint16_t port);
76 static void print_on_exit(
const actor& hdl,
const std::string& name);
84 static behavior sendWarning(event_based_actor*
self);
91 static behavior ackMessage();
101 static void protobuf_io(broker*
self, connection_handle hdl,
const actor& buddy);
109 static behavior server(broker*
self, actor buddy);
112 #endif // PROTOBUF_BROKER_H
Definition: protoagent.h:51