2024-11-21 21:38:20 +01:00
|
|
|
#include "test_producer_consumer.h"
|
2023-06-27 23:17:56 +02:00
|
|
|
|
2024-11-21 21:38:20 +01:00
|
|
|
int main()
|
2023-06-27 23:17:56 +02:00
|
|
|
{
|
|
|
|
spdlog::set_level(spdlog::level::info);
|
|
|
|
auto consumerSocket = make_pair_socket();
|
|
|
|
|
|
|
|
if (int res = nng_dial(consumerSocket, "tcp6://[::]:41234", nullptr, 0))
|
|
|
|
mesy_nng_fatal("nng_dial", res);
|
|
|
|
|
|
|
|
consumer(consumerSocket);
|
|
|
|
|
|
|
|
if (int res = nng_close(consumerSocket))
|
|
|
|
mesy_nng_fatal("nng_close", res);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|