(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4
 Overview   Namespace   Class   Index   Help 
PUBLIC MEMBERS:  CLASSESSTRUCTSUNIONSENUMSTYPEDEFSMETHODSSTATIC METHODSDATASTATIC DATA

:: 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 that can accept connections.

StreamSocket( const StreamSocket & );

StreamSocket( oslSocket Socket, __sal_NoAcquire noacquire );

StreamSocket( oslSocket Socket );
sal_Int32
read( void * pBuffer, sal_uInt32 n );
Retrieves n bytes from the stream and copies them into pBuffer. The method avoids incomplete reads due to packet boundaries.
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.
sal_Int32
recv( void * pBuffer, sal_uInt32 BytesToRead, oslSocketMsgFlag flags = osl_Socket_MsgNormal );
Tries to receives BytesToRead data from the connected socket,
sal_Int32
send( const void * pBuffer, sal_uInt32 BytesToSend, oslSocketMsgFlag = osl_Socket_MsgNormal );
Tries to sends BytesToSend data from the connected socket.

Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

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

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.