Am5os
 All Classes Functions Pages
Static Public Member Functions | List of all members
ProtoAgent Class Reference

Static Public Member Functions

static void startClient (uint16_t port, const string &host)
 
static void startServer (uint16_t port)
 
static void print_on_exit (const actor &hdl, const std::string &name)
 
static behavior sendWarning (event_based_actor *self)
 
static behavior ackMessage ()
 
static void protobuf_io (broker *self, connection_handle hdl, const actor &buddy)
 
static behavior server (broker *self, actor buddy)
 

Member Function Documentation

behavior ProtoAgent::ackMessage ( )
static

Server's behavior – gets the client's warning from the protobuf broker and responds with an "ack" message

Here is the caller graph for this function:

void ProtoAgent::print_on_exit ( const actor &  hdl,
const std::string &  name 
)
static

utility function to print an exit message with custom name.

Parameters
hdlActor which shuts down
nameActor name

Here is the caller graph for this function:

void ProtoAgent::protobuf_io ( broker *  self,
connection_handle  hdl,
const actor &  buddy 
)
static

implementation of the protobuf broker.

Parameters
selfincoming actor
hdlconnection handler
buddycommunication actor

Here is the caller graph for this function:

behavior ProtoAgent::sendWarning ( event_based_actor *  self)
static

Client's behavior – sends a warning after kickoff and quits after the warning has been acknowledged by the server.

Parameters
selfincoming actor

Here is the caller graph for this function:

behavior ProtoAgent::server ( broker *  self,
actor  buddy 
)
static

Behavior for server .

Parameters
selfincoming actor
buddycommunication actor

Here is the call graph for this function:

Here is the caller graph for this function:

void ProtoAgent::startClient ( uint16_t  port,
const string &  host 
)
static

starts the client.

Parameters
portSpecified port for communication
hsotHostname for connection to server

Here is the call graph for this function:

Here is the caller graph for this function:

void ProtoAgent::startServer ( uint16_t  port)
static

starts the server.

Parameters
portSpecified port for communication

Here is the call graph for this function:


The documentation for this class was generated from the following files: