mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 12:27:14 +02:00
Dev/zmq stream all ipv6 adn remove rx_zmqip (#958)
* enable ipv6 in zmq socket * removed rx_zmqip API and field in gui, changed client updaterxrzip to updateclientzmqip to have the rx_hostname ip if 0. * updated command line for rx_zmqip to give a warning. * Replaced 'depreciated' to 'deprecated' everywhere * switching from * to 0.0.0.0 works for rebinding zmq sockets * fixed help in command line for rx_zmqip * to 0.0.0.0 and removed cmd in python * remove publisher zmq socket ip also for moench post processing * fixed tests * publisher zmq ip macros to be reused
This commit is contained in:
@ -17,14 +17,14 @@ TEST_CASE("Get port number for sub") {
|
||||
|
||||
TEST_CASE("Get port number for pub") {
|
||||
constexpr int port = 50001;
|
||||
ZmqSocket pub(port, "*");
|
||||
ZmqSocket pub(port);
|
||||
REQUIRE(pub.GetPortNumber() == port);
|
||||
}
|
||||
|
||||
TEST_CASE("Server address") {
|
||||
constexpr int port = 50001;
|
||||
ZmqSocket pub(port, "*");
|
||||
REQUIRE(pub.GetZmqServerAddress() == std::string("tcp://*:50001"));
|
||||
ZmqSocket pub(port);
|
||||
REQUIRE(pub.GetZmqServerAddress() == std::string("tcp://0.0.0.0:50001"));
|
||||
}
|
||||
|
||||
TEST_CASE("Send header on localhost") {
|
||||
@ -32,7 +32,7 @@ TEST_CASE("Send header on localhost") {
|
||||
ZmqSocket sub("localhost", port);
|
||||
sub.Connect();
|
||||
|
||||
ZmqSocket pub(port, "*");
|
||||
ZmqSocket pub(port);
|
||||
|
||||
// Header to send
|
||||
zmqHeader header;
|
||||
@ -67,7 +67,7 @@ TEST_CASE("Send serveral headers of different length") {
|
||||
ZmqSocket sub("localhost", port);
|
||||
sub.Connect();
|
||||
|
||||
ZmqSocket pub(port, "*");
|
||||
ZmqSocket pub(port);
|
||||
|
||||
zmqHeader header;
|
||||
header.data = false; // if true we wait for the data
|
||||
@ -95,7 +95,7 @@ TEST_CASE("Send header and data") {
|
||||
ZmqSocket sub("localhost", port);
|
||||
sub.Connect();
|
||||
|
||||
ZmqSocket pub(port, "*");
|
||||
ZmqSocket pub(port);
|
||||
|
||||
std::vector<int> data{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
|
||||
const int nbytes = data.size() * sizeof(decltype(data)::value_type);
|
||||
|
Reference in New Issue
Block a user