1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef _COM_SUN_STAR_CONNECTION_XCONNECTOR_IDL_
24#define _COM_SUN_STAR_CONNECTION_XCONNECTOR_IDL_
25
26#include <com/sun/star/connection/ConnectionSetupException.idl>
27#include <com/sun/star/connection/NoConnectException.idl>
28#include <com/sun/star/lang/IllegalArgumentException.idl>
29#include <com/sun/star/connection/XConnection.idl>
30
31
32module com {  module sun {  module star {  module connection {
33
34/**
35   allows to actively establish an interprocess connection.
36 */
37published interface XConnector: com::sun::star::uno::XInterface
38{
39
40	// DocMerge from xml: method com::sun::star::connection::XConnector::connect
41	/** creates a new connection interprocess connection.
42		<p>
43		Tries to connect to an <type>XAcceptor</type>.  Behavior is unspecified
44        if a call to connect is made when another call to connect either has not
45        yet returned or has returned successfully without raising an exception.
46
47		@param sConnectionDescription
48				contains the kind of the connection plus a
49				comma separated list of attributes,
50			   e.g., <em>socket,host=locahost,port=2345</em> for a tcpip connection.
51
52	    @throws ConnectionSetupException
53				Problems during setting up the connector
54		      on client side, (e.g., Security-reasons, socket already busy .. ),
55				or the string could not be interpreted correctly.
56
57		@throws NoConnectException
58				Couldn't reach a server (e.g. network failure),
59				no server is listening
60	 */
61	XConnection connect( [in] string sConnectionDescription )
62		raises( NoConnectException,ConnectionSetupException );
63};
64
65
66};};};};
67
68#endif
69