rpcrt4: Use send on a socket instead of write as it's more portable.

This commit is contained in:
Rob Shearman 2008-01-08 18:13:52 +00:00 committed by Alexandre Julliard
parent 122eadb815
commit c370980dfa

View file

@ -996,7 +996,7 @@ static int rpcrt4_conn_tcp_write(RpcConnection *Connection,
int bytes_written = 0;
do
{
int r = write(tcpc->sock, (const char *)buffer + bytes_written, count - bytes_written);
int r = send(tcpc->sock, (const char *)buffer + bytes_written, count - bytes_written, 0);
if (r >= 0)
bytes_written += r;
else if (errno != EAGAIN)