1
Network / Re: [SOLVED] does pre-SFML-2.3 have problems with partial tcp sends?
« on: November 19, 2015, 01:24:33 am »
Thankyou
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
When using sf::TcpSocket in non-blocking mode, calls to send are not guaranteed to actually send all the data you pass to it, whether it be as a sf::Packet or as raw data. Starting from SFML 2.3, when sending raw data over a non-blocking sf::TcpSocket, always make sure to use the send(const void* data, std::size_t size, std::size_t& sent) overload which returns the number of bytes actually sent in the sent reference parameter after the function returns.