LibreOffice
LibreOffice 24.2 SDK API Reference
|
allows to passively accept connection attempts from other processes. More...
import"XAcceptor.idl";
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... | |
allows to passively accept connection attempts from other processes.
This is the counterpart to the XConnector interface.
XConnection accept | ( | [in] string | sConnectionDescription | ) | |
raises | ( | AlreadyAcceptingException, | |||
ConnectionSetupException, | |||||
com::sun::star::lang::IllegalArgumentException | |||||
) |
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.
sConnectionDescription | contains the kind of the connection plus a comma separated list of attributes, e.g., socket,host=localhost,port=2345 for a tcpip connection. |
AlreadyAcceptingException | Only one acceptor-thread per instance allowed. |
ConnectionSetupException | Problems during setting up the acceptor. (e.g., Security-reasons, socket already busy, etc.) |
com::sun::star::lang::IllegalArgumentException | sConnectionDescription could not be interpreted |
void stopAccepting | ( | ) |
pushes acceptor out of the accept-call.