Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: osl ::

class StreamSocket


Base Classes
Socket (public)
  |  
  +--StreamSocket
Known Derived Classes
ConnectorSocket

virtual abstract interface template
NO NO NO NO
File
socket_decl.hxx

Public Members

Methods


StreamSocket( oslAddrFamily Family = osl_Socket_FamilyInet, oslProtocol Protocol = osl_Socket_ProtocolIp, oslSocketType Type = osl_Socket_TypeStream );
Creates a socket.

StreamSocket( const StreamSocket & );

StreamSocket( oslSocket Socket, __sal_NoAcquire noacquire );

StreamSocket( oslSocket Socket );
sal_Int32
read( void * pBuffer, sal_uInt32 n );
sal_Int32
write( const void * pBuffer, sal_uInt32 n );
Writes n bytes from pBuffer to the stream. The method avoids incomplete writes due to packet boundaries and is thus blocking.
sal_Int32
recv( void * pBuffer, sal_uInt32 BytesToRead, oslSocketMsgFlag flags = osl_Socket_MsgNormal );
Tries to receive BytesToRead data from the connected socket,
sal_Int32
send( const void * pBuffer, sal_uInt32 BytesToSend, oslSocketMsgFlag = osl_Socket_MsgNormal );
Tries to send BytesToSend data to the connected socket.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.