LibreOffice 6.2 SDK API Reference
Public Member Functions | List of all members
XAcceptor Interface Referencepublished

allows to passively accept connection attempts from other processes. More...


Inheritance diagram for XAcceptor:
XInterface Acceptor

Public Member Functions

XConnection accept ([in] string sConnectionDescription) raises ( AlreadyAcceptingException, ConnectionSetupException, com::sun::star::lang::IllegalArgumentException)
 accepts an interprocess connection. More...
void stopAccepting ()
 pushes acceptor out of the accept-call. More...
- Public Member Functions inherited from XInterface
any queryInterface ([in] type aType)
 queries for a new interface to an existing UNO object. More...
void acquire ()
 increases the reference counter by one. More...
void release ()
 decreases the reference counter by one. More...

Detailed Description

allows to passively accept connection attempts from other processes.

This is the counterpart to the XConnector interface.

Developers Guide
ProUNO - Opening a Connection

Member Function Documentation

accepts an interprocess connection.

Waits until someone connects to the resource.

After a successful return, the method may be called again to accept further connections, but the parameter string MUST be left unchanged.

sConnectionDescriptioncontains the kind of the connection plus a comma separated list of attributes, e.g., socket,host=localhost,port=2345 for a tcpip connection.
null reference, stopAccepting was called. Otherwise a valid XConnection reference.
AlreadyAcceptingExceptionOnly one acceptor-thread per instance allowed.
ConnectionSetupExceptionProblems during setting up the acceptor. (e.g., Security-reasons, socket already busy, etc.)
com::sun::star::lang::IllegalArgumentExceptionsConnectionDescription could not be interpreted
void stopAccepting ( )

pushes acceptor out of the accept-call.

The documentation for this interface was generated from the following file: