LibreOffice Module io (master) 1
Public Member Functions | Public Attributes | List of all members
stoc_connector::SocketConnection Class Reference

#include <connector.hxx>

Inheritance diagram for stoc_connector::SocketConnection:
[legend]
Collaboration diagram for stoc_connector::SocketConnection:
[legend]

Public Member Functions

 SocketConnection (OUString sConnectionDescription)
 
virtual ~SocketConnection () override
 
virtual sal_Int32 SAL_CALL read (css::uno::Sequence< sal_Int8 > &aReadBytes, sal_Int32 nBytesToRead) override
 
virtual void SAL_CALL write (const css::uno::Sequence< sal_Int8 > &aData) override
 
virtual void SAL_CALL flush () override
 
virtual void SAL_CALL close () override
 
virtual OUString SAL_CALL getDescription () override
 
virtual void SAL_CALL addStreamListener (const css::uno::Reference< css::io::XStreamListener > &aListener) override
 
virtual void SAL_CALL removeStreamListener (const css::uno::Reference< css::io::XStreamListener > &aListener) override
 
void completeConnectionString ()
 

Public Attributes

::osl::ConnectorSocket m_socket
 
oslInterlockedCount m_nStatus
 
OUString m_sDescription
 
std::mutex _mutex
 
bool _started
 
bool _closed
 
bool _error
 
XStreamListener_hash_set _listeners
 

Detailed Description

Definition at line 57 of file connector.hxx.

Constructor & Destructor Documentation

◆ SocketConnection()

stoc_connector::SocketConnection::SocketConnection ( OUString  sConnectionDescription)
explicit

Definition at line 133 of file acc_socket.cxx.

References m_sDescription, and m_socket.

◆ ~SocketConnection()

stoc_connector::SocketConnection::~SocketConnection ( )
overridevirtual

Definition at line 98 of file ctr_socket.cxx.

Member Function Documentation

◆ addStreamListener()

void SAL_CALL stoc_connector::SocketConnection::addStreamListener ( const css::uno::Reference< css::io::XStreamListener > &  aListener)
overridevirtual

Definition at line 254 of file acc_socket.cxx.

References _listeners, and _mutex.

◆ close()

void stoc_connector::SocketConnection::close ( )
overridevirtual

◆ completeConnectionString()

void stoc_connector::SocketConnection::completeConnectionString ( )

Definition at line 147 of file acc_socket.cxx.

References m_sDescription, and m_socket.

◆ flush()

void stoc_connector::SocketConnection::flush ( )
overridevirtual

Definition at line 232 of file acc_socket.cxx.

◆ getDescription()

OUString stoc_connector::SocketConnection::getDescription ( )
overridevirtual

Definition at line 247 of file acc_socket.cxx.

References m_sDescription.

◆ read()

sal_Int32 stoc_connector::SocketConnection::read ( css::uno::Sequence< sal_Int8 > &  aReadBytes,
sal_Int32  nBytesToRead 
)
overridevirtual

◆ removeStreamListener()

void SAL_CALL stoc_connector::SocketConnection::removeStreamListener ( const css::uno::Reference< css::io::XStreamListener > &  aListener)
overridevirtual

Definition at line 261 of file acc_socket.cxx.

References _listeners, and _mutex.

◆ write()

void stoc_connector::SocketConnection::write ( const css::uno::Sequence< sal_Int8 > &  aData)
overridevirtual

Definition at line 200 of file acc_socket.cxx.

References _error, Any, any, m_nStatus, m_socket, and stoc_connector::notifyListeners().

Member Data Documentation

◆ _closed

bool stoc_connector::SocketConnection::_closed

Definition at line 86 of file connector.hxx.

Referenced by close().

◆ _error

bool stoc_connector::SocketConnection::_error

Definition at line 87 of file connector.hxx.

Referenced by read(), and write().

◆ _listeners

XStreamListener_hash_set stoc_connector::SocketConnection::_listeners

◆ _mutex

std::mutex stoc_connector::SocketConnection::_mutex

◆ _started

bool stoc_connector::SocketConnection::_started

Definition at line 85 of file connector.hxx.

Referenced by read().

◆ m_nStatus

oslInterlockedCount stoc_connector::SocketConnection::m_nStatus

Definition at line 81 of file connector.hxx.

Referenced by close(), read(), and write().

◆ m_sDescription

OUString stoc_connector::SocketConnection::m_sDescription

Definition at line 82 of file connector.hxx.

Referenced by completeConnectionString(), getDescription(), and SocketConnection().

◆ m_socket

::osl::ConnectorSocket stoc_connector::SocketConnection::m_socket

Definition at line 80 of file connector.hxx.

Referenced by close(), completeConnectionString(), read(), SocketConnection(), and write().


The documentation for this class was generated from the following files: