061b8933a7
Reviewers: zuza, lion, buda, mferencevic Reviewed By: zuza Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D669
16 lines
454 B
C++
16 lines
454 B
C++
#include "communication.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;
|
|
}
|