Le 11/11/13 6:35 PM, jonas85 a écrit :
> Hello Emmanuel,
>
> thanks for the response! I am going to try something out with the
> messageSent() function in a bit to see if that fixes it. But I wonder if
> your assumption is right, 
You bet it is ! The thread which writes data into the socket is the very
same that the one which is used by your loop, so unless you quit the
loop, there is no way for the messages to be sent.

The way it works is that it will enqueue all the messages, an when done,
it will now try to get the messages from the queue and write them into
the socket.

Btw, I was wrong assuming that using the future could help : you wll
just block forever. The only solution is to use the messageSent()
event.-- Regards, Cordialement, Emmanuel Lécharny www.iktek.com

Reply via email to