0f12426ae3
Summary: 1. move Reactor (local) stuff into reactors_local.hpp/.cpp 2. renamed connector_unit -> reactors_local_unit 3. renamed communication.hpp/.cpp -> reactors_distributed.hpp/.cpp Reviewers: sasa.stanko, mferencevic Reviewed By: sasa.stanko Differential Revision: https://phabricator.memgraph.io/D675
16 lines
461 B
C++
16 lines
461 B
C++
#include "reactors_distributed.hpp"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
google::InitGoogleLogging(argv[0]);
|
|
System system;
|
|
Distributed distributed(system);
|
|
distributed.network().StartClient(1);
|
|
auto channel = distributed.network().Resolve("127.0.0.1", 10000, "master", "main");
|
|
std::cout << channel << std::endl;
|
|
if (channel != nullptr) {
|
|
channel->Send<SenderMessage>("master", "main");
|
|
}
|
|
distributed.network().StopClient();
|
|
return 0;
|
|
}
|