1 martin 1.10 //%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.11 //
|
3 martin 1.10 // Licensed to The Open Group (TOG) under one or more contributor license
4 // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 // this work for additional information regarding copyright ownership.
6 // Each contributor licenses this file to you under the OpenPegasus Open
7 // Source License; you may not use this file except in compliance with the
8 // License.
|
9 martin 1.11 //
|
10 martin 1.10 // Permission is hereby granted, free of charge, to any person obtaining a
11 // copy of this software and associated documentation files (the "Software"),
12 // to deal in the Software without restriction, including without limitation
13 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 // and/or sell copies of the Software, and to permit persons to whom the
15 // Software is furnished to do so, subject to the following conditions:
|
16 martin 1.11 //
|
17 martin 1.10 // The above copyright notice and this permission notice shall be included
18 // in all copies or substantial portions of the Software.
|
19 martin 1.11 //
|
20 martin 1.10 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.11 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.10 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27 martin 1.11 //
|
28 martin 1.10 //////////////////////////////////////////////////////////////////////////
|
29 a.arora 1.3 //
30 //%/////////////////////////////////////////////////////////////////////////////
31 #ifndef Pegasus_CIMClientConnection_h
32 #define Pegasus_CIMClientConnection_h
33
34 #include <Pegasus/Client/CIMClientRep.h>
35 #include <Pegasus/Common/String.h>
36 #include <Pegasus/Client/Linkage.h>
|
37 joyce.j 1.6 #include <Pegasus/Common/AutoPtr.h>
|
38 dave.sudlik 1.8 #include <Pegasus/Common/HostAddress.h>
|
39 a.arora 1.3
40 PEGASUS_NAMESPACE_BEGIN
41
42 class PEGASUS_CLIENT_LINKAGE CIMClientConnection
43 {
44
45 public:
46
|
47 marek 1.9 // class constructor
48 CIMClientConnection();
|
49 kumpf 1.12
|
50 marek 1.9 CIMClientConnection(
51 const String& host,
52 const String& port,
53 const String& userid,
54 const String& passwd);
55
56 CIMClientConnection(
57 const String& host,
58 const String& port,
59 const String& userid,
60 const String& passwd,
61 const SSLContext& sslcontext);
62
63 Boolean equals(void *binIPAddress, int af, const String& port);
64
65 CIMClientRep * getConnectionHandle(void);
66
67 String getUser(void);
68 String getPass(void);
69 SSLContext* getSSLContext(void);
|
70 a.arora 1.3
71 private:
|
72 joyce.j 1.6 AutoPtr<CIMClientRep> _connectionHandle;
|
73 marek 1.9 String _hostname;
74 String _port;
75 String _userid;
76 String _passwd;
|
77 joyce.j 1.6 AutoPtr<SSLContext> _sslcontext;
|
78 kumpf 1.12
|
79 marek 1.9 char _resolvedIP[PEGASUS_INET6_ADDRSTR_LEN];
|
80 a.arora 1.3 };
81
82 PEGASUS_NAMESPACE_END
83
84 #endif // Pegasus_CIMClientConnection_h
|