22#include <com/sun/star/io/IOException.hpp>
25#include <osl/pipe.hxx>
43 sal::static_int_cast< sal_Int64 >(
44 reinterpret_cast< sal_IntPtr
>(&
m_pipe)) );
47 PipeConnection::~PipeConnection()
51 sal_Int32 PipeConnection::read( Sequence < sal_Int8 > & aReadBytes , sal_Int32 nBytesToRead )
57 if( aReadBytes.getLength() != nBytesToRead )
59 aReadBytes.realloc( nBytesToRead );
61 return m_pipe.read( aReadBytes.getArray() , aReadBytes.getLength() );
65 void PipeConnection::write(
const Sequence < sal_Int8 > &seq )
71 if(
m_pipe.write( seq.getConstArray() , seq.getLength() ) != seq.getLength() )
77 void PipeConnection::flush( )
82 void PipeConnection::close()
85 if(1 == osl_atomic_increment( (&
m_nStatus) ) )
91 OUString PipeConnection::getDescription()
oslInterlockedCount m_nStatus
PipeConnection(OUString sConnectionDescription)