3 #ifndef INCLUDED_OSL_PIPE_HXX
4 #define INCLUDED_OSL_PIPE_HXX
26 : m_handle(
osl_createPipe( strName.pData, Options , rSecurity.getHandle() ) )
31 : m_handle( pipe.m_handle )
37 #if defined LIBO_INTERNAL_ONLY
39 other.m_handle =
nullptr;
66 *
this =
Pipe( strName, Options, rSec );
73 *
this =
Pipe( strName, Options );
83 #if defined LIBO_INTERNAL_ONLY
85 if (m_handle !=
nullptr) {
88 m_handle = other.m_handle;
89 other.m_handle =
nullptr;
136 if( Connection.
is() )
165 :
Pipe( strName, Options , rSec )
170 :
Pipe( strName, Options )
174 :
Pipe( pipe , noacquire )
196 inline sal_Int32 SAL_CALL
StreamPipe::send(
const void* pBuffer, sal_Int32 BytesToSend)
const
__sal_NoAcquire
Definition: types.h:333
@ SAL_NO_ACQUIRE
definition of a no acquire enum for ctors
Definition: types.h:336
oslPipeError
Definition: pipe.h:17
@ osl_Pipe_E_None
Definition: pipe.h:18
SAL_DLLPUBLIC sal_Int32 osl_writePipe(oslPipe Pipe, const void *pBuffer, sal_Int32 BufferSize)
Writes blocking onto the pipe.
SAL_DLLPUBLIC sal_Int32 osl_readPipe(oslPipe Pipe, void *pBuffer, sal_Int32 BufferSize)
Reads blocking from the pipe.
sal_uInt32 oslPipeOptions
Pipe creation options.
Definition: pipe.h:36
SAL_DLLPUBLIC sal_Int32 osl_sendPipe(oslPipe Pipe, const void *pBuffer, sal_Int32 BufferSize)
struct oslPipeImpl * oslPipe
Definition: pipe.h:40
SAL_DLLPUBLIC oslPipe osl_acceptPipe(oslPipe Pipe)
SAL_DLLPUBLIC void osl_closePipe(oslPipe Pipe)
Close the pipe.
SAL_DLLPUBLIC void osl_acquirePipe(oslPipe Pipe)
Increases the refcount of the pipe.
SAL_DLLPUBLIC sal_Int32 osl_receivePipe(oslPipe Pipe, void *pBuffer, sal_Int32 BufferSize)
SAL_DLLPUBLIC oslPipe osl_createPipe(rtl_uString *strPipeName, oslPipeOptions Options, oslSecurity Security)
Create or open a pipe.
SAL_DLLPUBLIC oslPipeError osl_getLastPipeError(oslPipe Pipe)
SAL_DLLPUBLIC void osl_releasePipe(oslPipe Pipe)
Decreases the refcount of the pipe.
Definition: condition.hxx:11
Represents a pipe.
Definition: pipe_decl.hxx:17
bool is() const
Definition: pipe.hxx:105
Pipe()
Does not create a pipe.
Definition: pipe.hxx:15
~Pipe()
Destructor.
Definition: pipe.hxx:56
oslPipeError getError() const
Delivers a constant describing the last error for the pipe system.
Definition: pipe.hxx:143
Pipe & operator=(const Pipe &pipe)
Assignment operator.
Definition: pipe.hxx:77
oslPipe m_handle
Definition: pipe_decl.hxx:19
oslPipe getHandle() const
Definition: pipe.hxx:149
void close()
Closes the pipe.
Definition: pipe.hxx:117
oslPipeError accept(StreamPipe &Connection)
Accept connection on an existing pipe.
Definition: pipe.hxx:133
bool operator==(const Pipe &rPipe) const
Definition: pipe.hxx:111
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:63
void clear()
releases the underlying handle
Definition: pipe.hxx:123
A pipe to send or receive a stream of data.
Definition: pipe_decl.hxx:130
StreamPipe()
Creates an unattached pipe.
Definition: pipe.hxx:155
sal_Int32 write(const void *pBuffer, sal_Int32 n) const
Writes n bytes from pBuffer to the stream.
Definition: pipe.hxx:184
sal_Int32 recv(void *pBuffer, sal_Int32 BytesToRead) const
Tries to receives BytesToRead data from the connected pipe,.
Definition: pipe.hxx:190
sal_Int32 read(void *pBuffer, sal_Int32 n) const
Retrieves n bytes from the stream and copies them into pBuffer.
Definition: pipe.hxx:178
sal_Int32 send(const void *pBuffer, sal_Int32 BytesToSend) const
Tries to sends BytesToSend data from the connected pipe.
Definition: pipe.hxx:196
Encapsulate security information for one user.
Definition: security_decl.hxx:19