19 #ifndef INCLUDED_OSL_PIPE_HXX
20 #define INCLUDED_OSL_PIPE_HXX
38 : m_handle(
osl_createPipe( strName.pData, Options , rSecurity.getHandle() ) )
43 : m_handle( pipe.m_handle )
73 *
this =
Pipe( strName, Options, rSec );
80 *
this =
Pipe( strName, Options );
133 if( Connection.
is() )
162 :
Pipe( strName, Options , rSec )
167 :
Pipe( strName, Options )
176 :
Pipe( pipe , noacquire )
198 inline sal_Int32 SAL_CALL
StreamPipe::send(
const void* pBuffer, sal_Int32 BytesToSend)
const
oslPipe getHandle() const
Definition: pipe.hxx:146
bool create(const ::rtl::OUString &strName, oslPipeOptions Options, const Security &rSec)
Creates an insecure pipe that is accessible for all users with the given attributes.
Definition: pipe.hxx:70
bool is() const
Definition: pipe.hxx:102
SAL_DLLPUBLIC oslPipeError osl_getLastPipeError(oslPipe Pipe)
oslPipeError
Definition: pipe.h:34
SAL_DLLPUBLIC sal_Int32 osl_readPipe(oslPipe Pipe, void *pBuffer, sal_Int32 BufferSize)
Reads blocking from the pipe.
sal_Int32 send(const void *pBuffer, sal_Int32 BytesToSend) const
Tries to sends BytesToSend data from the connected pipe.
Definition: pipe.hxx:198
Pipe & operator=(const Pipe &pipe)
Assignment operator.
Definition: pipe.hxx:84
sal_uInt32 oslPipeOptions
Definition: pipe.h:49
definition of a no acquire enum for ctors
Definition: types.h:388
SAL_DLLPUBLIC oslPipe osl_acceptPipe(oslPipe Pipe)
SAL_DLLPUBLIC oslPipe osl_createPipe(rtl_uString *strPipeName, oslPipeOptions Options, oslSecurity Security)
SAL_DLLPUBLIC sal_Int32 osl_sendPipe(oslPipe Pipe, const void *pBuffer, sal_Int32 BufferSize)
__sal_NoAcquire
Definition: types.h:384
Represents a pipe.
Definition: pipe_decl.hxx:32
StreamPipe()
Creates an unattached pipe.
Definition: pipe.hxx:152
sal_Int32 write(const void *pBuffer, sal_Int32 n) const
Writes n bytes from pBuffer to the stream.
Definition: pipe.hxx:186
void clear()
releases the underlying handle
Definition: pipe.hxx:120
sal_Int32 recv(void *pBuffer, sal_Int32 BytesToRead) const
Tries to receives BytesToRead data from the connected pipe,.
Definition: pipe.hxx:192
bool operator==(const Pipe &rPipe) const
Definition: pipe.hxx:108
Definition: conditn.hxx:30
capsulate security information for one user.
Definition: security_decl.hxx:34
SAL_DLLPUBLIC sal_Int32 osl_writePipe(oslPipe Pipe, const void *pBuffer, sal_Int32 BufferSize)
Writes blocking onto the pipe.
oslPipeError accept(StreamPipe &Connection)
Accept connection on an existing pipe.
Definition: pipe.hxx:130
sal_Int32 read(void *pBuffer, sal_Int32 n) const
Retrieves n bytes from the stream and copies them into pBuffer.
Definition: pipe.hxx:180
void close()
Closes the pipe.
Definition: pipe.hxx:114
SAL_DLLPUBLIC void osl_releasePipe(oslPipe)
decreases the refcount of the pipe.
SAL_DLLPUBLIC void osl_closePipe(oslPipe)
closes the pipe, any read,write or accept actions stop immeadiatly.
oslPipe m_handle
Definition: pipe_decl.hxx:35
Pipe()
Does not create a pipe.
Definition: pipe.hxx:27
~Pipe()
Destructor.
Definition: pipe.hxx:63
oslPipeError getError() const
Delivers a constant decribing the last error for the pipe system.
Definition: pipe.hxx:140
SAL_DLLPUBLIC sal_Int32 osl_receivePipe(oslPipe Pipe, void *pBuffer, sal_Int32 BufferSize)
A pipe to send or receive a stream of data.
Definition: pipe_decl.hxx:139
SAL_DLLPUBLIC void osl_acquirePipe(oslPipe Pipe)
increases the refcount of the pipe.
struct oslPipeImpl * oslPipe
Definition: pipe.h:53