I am writing a simple UDP client that is going to listen (and sometimes send) to server, but my socket async_receive_from never calls the handler.
Here is my UDP client:
UdpClient.h
UdpClient.cpp
And the call is pretty straightworward:
_commClient = new UdpClient();
_commClient->Incoming.connect(boost::bind(&ShellController::MessageIn, this, _1));
var thr = std::thread(std::bind(&UdpClient::Init, reinterpret_cast<UdpClient *>(_commClient), true));
var thr2 = std::thread(std::bind(&UdpClient::Init, reinterpret_cast<UdpClient *>(_commClient), false));
I know I'm missing something, but I have no idea what could it be.
Aucun commentaire:
Enregistrer un commentaire