Question by
phineliner · Nov 18, 2015 at 01:52 PM ·
unity 5networkingunity5networksend
UNET - How to wait for NetworkConnection.Send(...) to finish?
Is there a possibility to wait for NetworkConnection.Send
(see here) ? Is there a flag which tells me if the message has been sent? The Send
Method itself returns a bool, telling me whether it was sent. But if I close the connection immediately after calling Send
, the message wont reach the recepient. Thus I would like to wait for finish and afterwards close the connection.
Cheers, Kevin
Comment
I thought about sending an AC$$anonymous$$ from the recepient, but the recepient also closes its connection after receiving that first message. So he would have to wait for the AC$$anonymous$$ to be sent and then close the connection. So the same problem, just on different site.