Merge pull request #72 from LaurentGomila/feature/partial_send

Added support for patial TCP sends
This commit is contained in:
Laurent Gomila committed 2015-03-22 18:41:29 +01:00
commit 0fe078ec8a
3 files changed
+32

No files matched your search

+9
View File
@@ -115,6 +115,15 @@ sfSocketStatus sfTcpSocket_send(sfTcpSocket* socket, const void* data, size_t si
}
////////////////////////////////////////////////////////////
sfSocketStatus sfTcpSocket_sendPartial(sfTcpSocket* socket, const void* data, size_t size, size_t* sent)
{
CSFML_CHECK_RETURN(socket, sfSocketError);
return static_cast<sfSocketStatus>(socket->This.send(data, size, *sent));
}
////////////////////////////////////////////////////////////
sfSocketStatus sfTcpSocket_receive(sfTcpSocket* socket, void* data, size_t maxSize, size_t* sizeReceived)
{