|
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) |
|
behavior ProtoAgent::ackMessage |
( |
| ) |
|
|
static |
Server's behavior – gets the client's warning from the protobuf broker and responds with an "ack" message
void ProtoAgent::print_on_exit |
( |
const actor & |
hdl, |
|
|
const std::string & |
name |
|
) |
| |
|
static |
utility function to print an exit message with custom name.
- Parameters
-
hdl | Actor which shuts down |
name | Actor name |
void ProtoAgent::protobuf_io |
( |
broker * |
self, |
|
|
connection_handle |
hdl, |
|
|
const actor & |
buddy |
|
) |
| |
|
static |
implementation of the protobuf broker.
- Parameters
-
self | incoming actor |
hdl | connection handler |
buddy | communication actor |
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
-
behavior ProtoAgent::server |
( |
broker * |
self, |
|
|
actor |
buddy |
|
) |
| |
|
static |
Behavior for server .
- Parameters
-
self | incoming actor |
buddy | communication actor |
void ProtoAgent::startClient |
( |
uint16_t |
port, |
|
|
const string & |
host |
|
) |
| |
|
static |
starts the client.
- Parameters
-
port | Specified port for communication |
hsot | Hostname for connection to server |
void ProtoAgent::startServer |
( |
uint16_t |
port | ) |
|
|
static |
starts the server.
- Parameters
-
port | Specified port for communication |
The documentation for this class was generated from the following files:
- src/CarCommunication/protoagent.h
- src/CarCommunication/protoagent.cpp