[Off topic]
May I can know the reason why you try to implement zmq instead of using the Communication plugin ? 🙂

I will want ask/talk with you in relation to Communication Plugin and for it, I did re-open my last thread/question in which you ask to me some interest questions about of use of Communications plugin and their possibilities and limitations. In this thread I will answer to you

In your component constructor you create a socket on portsocket.bind("tcp://*:5555");
For the first instance, everything works well. But for the second one, it gonna try to bind on port 5555 but it´s already bind by the first instance. Then it crash.
Try to create only one or fix the bind issue like giving the port as an argument.

[Off topic]
Cool, we want to share and improve this plugin. Let us know if you want to code in it 😉

In your component constructor you create a socket on port
socket.bind(“tcp://*:5555”);
For the first instance, everything works well. But for the second one, it gonna try to bind on port 5555 but it´s already bind by the first instance. Then it crash.
Try to create only one or fix the bind issue like giving the port as an argument.

In your component constructor you create a socket on port
socket.bind(“tcp://*:5555”);
For the first instance, everything works well. But for the second one, it gonna try to bind on port 5555 but it´s already bind by the first instance. Then it crash.
Try to create only one or fix the bind issue like giving the port as an argument

Currently I have of this way:socket.bind("tcp://*:5555");

And I don’t know the reason why the socket is created twice. I am creating the socket in my constructor class ZMQServerComponent, is possible that by some reason this be called two times?

Hi @erwandouaille I’ve separated from the constructor class the socket creation and my component with zeroMQ basics works. I include it inside of a function which I execute in the ZMQServerComponent::init() method

When I’ve add my Test.scn file sample I can create the socket, despite of some error

When I send a client message from a external client application, in my server sofa I get this:

Live chat ? What is your problem with libs ? Linux ? Windows (never tested it on win) ?

Hi @erwandouaille, are problems about of libs and configuration settings in my Ubuntu laptop.
I will have to update my sources repositories in relation to install the requirements packages.

Additionally, I am testing and learning how to create a component, associate it a scene and send data components from SOFA. For this last thing I’m using ZMQ.
Of this way I want know a few more of SOFA and ZMQ initially.

You know about of ZMQ and leverage this, I take the audacity of ask to you the following:
Could you please support me in this inconvenience in relation to send data component via zockets ZWQ.

Hi @erwandouaille, are problems about of libs and configuration settings in my Ubuntu laptop.
I will have to update my sources repositories in relation to install the requirements packages.

Most of recent ubuntu release have the libs in their repository. Which ubuntu version are you running ?

Additionally, I am testing and learning how to create a component, associate it a scene and send data components from SOFA. For this last thing I’m using ZMQ.
Of this way I want know a few more of SOFA and ZMQ initially.

Cool !

You know about of ZMQ and leverage this, I take the audacity of ask to you the following:
Could you please support me in this inconvenience in relation to send data component via zockets ZWQ.

That’s weird. Did you try using my C++ client + the server ?
Just to ensure my cpp files are working well on your machine ?
If both works perfectly together, let me know I will investigate your code in details.