Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: com :: sun :: star :: connection ::
interface XAcceptor
Description allows to passively accept connection attempts from other processes. This is the counterpart to the XConnector interface. Developers Guide ProUNO - Opening a Connection

Methods' Summary
accept | accepts an interprocess connection. Waits until someone connects to the resource.
stopAccepting | pushes acceptor out of the accept-call.

Methods' Details
accept
XConnection
accept( | [in] string | sConnectionDescription )
raises( | AlreadyAcceptingException, ConnectionSetupException, ::com::sun::star::lang::IllegalArgumentException );
Description 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. Parameter 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. Returns null reference, stopAccepting was called. Otherwise a valid XConnection reference. Throws AlreadyAcceptingException Only one acceptor-thread per instance allowed. Throws ConnectionSetupException Problems during setting up the acceptor. (e.g., Security-reasons, socket already busy, etc.) Throws com::sun::star::lang::IllegalArgumentException sConnectionDescription could not be interpreted
stopAccepting
void
stopAccepting();
Description pushes acceptor out of the accept-call.

Top of Page

Copyright © 2000, 2013 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.