interface XAcceptor in module com::sun::star::connection::

(Global Index)

Syntax

interface XAcceptor : com::sun::star::uno::XInterface ;

Description

allows to passively accept connection attempts from other processes.

This is the counterpart to the XConnector interface.

Method Summary

accept accepts an interprocess connection. Waits until someone connects to the resource.

stopAccepting pushes acceptor out of the accept-call.

Known Services Which Export this Interface

com::sun::star::connection::Acceptor

com::sun::star::connection::Acceptor

Method Details



accept

Syntax

com::sun::star::connection::XConnection accept (
string sConnectionDescription )
raises ( com::sun::star::connection::AlreadyAcceptingException , com::sun::star::connection::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 seperated list of attributes, e.g., socket,host=locahost,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

Syntax

void stopAccepting ();

Description

pushes acceptor out of the accept-call.

Top of Page