LibreOffice
LibreOffice 24.2 SDK API Reference
|
allows to actively establish an interprocess connection. More...
import <XConnector.idl;
Public Member Functions | |
XConnection | connect ([in] string sConnectionDescription) raises ( NoConnectException,ConnectionSetupException ) |
creates a new connection interprocess connection. | |
![]() | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. | |
void | acquire () |
increases the reference counter by one. | |
void | release () |
decreases the reference counter by one. | |
allows to actively establish an interprocess connection.
XConnection connect | ( | [in] string | sConnectionDescription | ) | ||
raises | ( | NoConnectException, | ||||
ConnectionSetupException ) |
creates a new connection interprocess connection.
Tries to connect to an XAcceptor. Behavior is unspecified if a call to connect is made when another call to connect either has not yet returned or has returned successfully without raising an exception.
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. |
ConnectionSetupException | Problems during setting up the connector on client side, (e.g., Security-reasons, socket already busy .. ), or the string could not be interpreted correctly. |
NoConnectException | Couldn't reach a server (e.g. network failure), no server is listening |