LibreOffice
LibreOffice 6.4 SDK C/C++ API Reference
|
Go to the documentation of this file.
19 #ifndef INCLUDED_OSL_PIPE_DECL_HXX
20 #define INCLUDED_OSL_PIPE_DECL_HXX
61 #if defined LIBO_INTERNAL_ONLY
78 inline bool SAL_CALL
is()
const;
88 inline bool create( const ::rtl::OUString & strName,
103 inline void SAL_CALL
clear();
110 #if defined LIBO_INTERNAL_ONLY
128 inline void SAL_CALL
close();
203 inline sal_Int32 SAL_CALL
recv(
void* pBuffer, sal_Int32 BytesToRead)
const;
213 inline sal_Int32 SAL_CALL
send(
const void* pBuffer, sal_Int32 BytesToSend)
const;
225 inline sal_Int32 SAL_CALL
read(
void* pBuffer, sal_Int32 n)
const;
236 sal_Int32 SAL_CALL
write(
const void* pBuffer, sal_Int32 n)
const;
struct oslPipeImpl * oslPipe
Definition: pipe.h:57
void clear()
releases the underlying handle
Definition: pipe.hxx:139
oslPipeError accept(StreamPipe &Connection)
Accept connection on an existing pipe.
Definition: pipe.hxx:149
sal_Int32 write(const void *pBuffer, sal_Int32 n) const
Writes n bytes from pBuffer to the stream.
Definition: pipe.hxx:200
Definition: condition.hxx:28
sal_Int32 recv(void *pBuffer, sal_Int32 BytesToRead) const
Tries to receives BytesToRead data from the connected pipe,.
Definition: pipe.hxx:206
Encapsulate security information for one user.
Definition: security_decl.hxx:35
sal_uInt32 oslPipeOptions
Pipe creation options.
Definition: pipe.h:53
A pipe to send or receive a stream of data.
Definition: pipe_decl.hxx:148
~Pipe()
Destructor.
Definition: pipe.hxx:72
sal_Int32 read(void *pBuffer, sal_Int32 n) const
Retrieves n bytes from the stream and copies them into pBuffer.
Definition: pipe.hxx:194
bool is() const
Definition: pipe.hxx:121
bool operator==(const Pipe &rPipe) const
Definition: pipe.hxx:127
sal_Int32 send(const void *pBuffer, sal_Int32 BytesToSend) const
Tries to sends BytesToSend data from the connected pipe.
Definition: pipe.hxx:212
Pipe()
Does not create a pipe.
Definition: pipe.hxx:31
StreamPipe & operator=(const Pipe &pipe)
Assignment operator.
StreamPipe()
Creates an unattached pipe.
Definition: pipe.hxx:171
oslPipe m_handle
Definition: pipe_decl.hxx:35
__sal_NoAcquire
Definition: types.h:371
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:79
Represents a pipe.
Definition: pipe_decl.hxx:33
oslPipeError getError() const
Delivers a constant describing the last error for the pipe system.
Definition: pipe.hxx:159
Pipe & operator=(const Pipe &pipe)
Assignment operator.
Definition: pipe.hxx:93
oslPipeError
Definition: pipe.h:34
void close()
Closes the pipe.
Definition: pipe.hxx:133
#define osl_Pipe_OPEN
Definition: pipe.h:54
bool isValid() const
Checks if the pipe is valid.
StreamPipe & operator=(oslPipe Pipe)
Attaches the oslPipe to this object.
oslPipe getHandle() const
Definition: pipe.hxx:165