Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: osl ::

class StreamPipe


Base Classes
Pipe (public)
  |  
  +--StreamPipe
Known Derived Classes
None.

virtual abstract interface template
NO NO NO NO
Summary
A pipe to send or receive a stream of data.
File
pipe_decl.hxx

Public Members

Methods


StreamPipe( );

StreamPipe( oslPipe Pipe );
Creates pipe as wrapper around the underlying oslPipe.

StreamPipe( const StreamPipe & Pipe );
Copy constructor.

StreamPipe( const ::rtl::OUString & strName, oslPipeOptions Options = osl_Pipe_OPEN );
Creates a pipe.

StreamPipe( const ::rtl::OUString & strName, oslPipeOptions Options, const Security & rSec );
Creates a pipe.

StreamPipe( oslPipe pipe, __sal_NoAcquire noacquire );
Constructs a Pipe reference without acquiring the handle
StreamPipe &
operator=( oslPipe Pipe );
StreamPipe &
operator=( const Pipe & pipe );
Assignment operator
sal_Int32
recv( void * pBuffer, sal_Int32 BytesToRead ) const;
Tries to receives BytesToRead data from the connected pipe,
sal_Int32
send( const void * pBuffer, sal_Int32 BytesToSend ) const;
Tries to sends BytesToSend data from the connected pipe.
sal_Int32
read( void * pBuffer, sal_Int32 n ) const;
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_Int32 n ) const;
Writes n bytes from pBuffer to the stream. The method avoids incomplete writes due to packet boundaries.

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.