summaryrefslogtreecommitdiff
path: root/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-08-23 10:43:37 +0300
committerTor Lillqvist <tlillqvist@suse.com>2012-08-23 10:43:37 +0300
commitb1932b7a182d99a52b8c2fb71d2d48a61ce47423 (patch)
tree7a501f647947d1c3fb2f5284fb700d1269cd0a89 /sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
parentc439fad7d6802ae6df8b91ffaf964f083a6d7eea (diff)
send()/recv() on sockets (instead of write()/read()) for Windows portability
Change-Id: Ifaa890d87021c7786c7392f52d4f29b0779a7668
Diffstat (limited to 'sd/source/ui/remotecontrol/BufferedStreamSocket.cxx')
-rw-r--r--sd/source/ui/remotecontrol/BufferedStreamSocket.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx b/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
index 2b659705a6e4..0733db44acc8 100644
--- a/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
+++ b/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
@@ -52,7 +52,7 @@ sal_Int32 BufferedStreamSocket::write( const void* pBuffer, sal_uInt32 n )
if ( !usingCSocket )
return StreamSocket::write( pBuffer, n );
else
- return ::write( mSocket, pBuffer, (size_t) n );
+ return ::send( mSocket, pBuffer, (size_t) n, 0 );
}
sal_Int32 BufferedStreamSocket::readLine( OString& aLine )
@@ -79,7 +79,7 @@ sal_Int32 BufferedStreamSocket::readLine( OString& aLine )
if ( !usingCSocket)
aRet = StreamSocket::recv( &aBuffer[aRead], 100 );
else
- aRet = ::read( mSocket, &aBuffer[aRead], 100 );
+ aRet = ::recv( mSocket, &aBuffer[aRead], 100, 0 );
if ( aRet == 0 )
{