memgraph/experimental/distributed/tests/network_client.cpp
Goran Zuzic 3ae35fa161 Renamings
Summary:
1. SenderMessage -> ReturnAddressMsg and GetChannelToSender -> GetReturnChannelWriter
2. Channel -> ChannelWriter
3. Connector -> Channel
4. removed old serialize_test
5. removed AwaitEvent and PopEvent

Reviewers: sasa.stanko

Reviewed By: sasa.stanko

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D698
2017-08-23 15:18:07 +02:00

15 lines
469 B
C++

#include "reactors_distributed.hpp"
int main(int argc, char *argv[]) {
google::InitGoogleLogging(argv[0]);
Distributed &distributed = Distributed::GetInstance();
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<ReturnAddressMsg>("master", "main");
}
distributed.network().StopClient();
return 0;
}