Hi all,
I’m starting on a block for some Master/Slave functionality using Cinder-Asio. I have multiple slaves connecting to a master, they all seem to connect yet the onAccept
handler in the master is only called the first time. So when I go to send the slaves a message I only have 1 active session to do so.
At the end of this thread on the old forum @banthrewind mentions a strategy for dealing with this but it seems to require onAccept
being called so that you can get the socket from the session passed in.
There is a sample app that shows the issue in the repo I am working on here. The one app creates instances of both the master and slaves and simply tries to send them the frame number. You can see it only working for the first slave.
Any help appreciated - dealing with Asio directly seems pretty tricky.
Cheers,
nay.
EDIT - Note that I am actually using this branch thanks to @ryanbartley , the original is not compiling for me at the moment.