version 1.8, 2006/01/30 16:16:42
|
version 1.9, 2006/11/14 18:34:48
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Tony Fiorentino (fiorentino_tony@emc.com) |
|
// |
|
// Modified By: |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
|
|
#ifndef Pegasus_CIMServerDiscovery_h | #ifndef Pegasus_CIMServerDiscovery_h |
#define Pegasus_CIMServerDiscovery_h | #define Pegasus_CIMServerDiscovery_h |
| |
|
|
passing of scopes and spi parameters etc. | passing of scopes and spi parameters etc. |
*/ | */ |
| |
struct PEGASUS_CLIENT_LINKAGE SLPClientOptions{ |
struct PEGASUS_CLIENT_LINKAGE SLPClientOptions |
|
{ |
char* target_address; | char* target_address; |
char* local_interface; | char* local_interface; |
unsigned short target_port; | unsigned short target_port; |
|
|
char* predicate; | char* predicate; |
bool use_directory_agent; | bool use_directory_agent; |
/** | /** |
* Constructs an empty object. User must strdup the |
Constructs an empty object. User must strdup the |
* string values during initialistation, |
string values during initialistation, |
* which are then freed automatically during |
which are then freed automatically during |
* destruction |
destruction. |
* */ |
*/ |
SLPClientOptions(); | SLPClientOptions(); |
|
|
/** | /** |
* Destroys object and contained string values |
Destroys object and contained string values |
* */ |
*/ |
~SLPClientOptions(); | ~SLPClientOptions(); |
|
|
/** | /** |
* For debugging |
For debugging |
* */ |
*/ |
void print() const; | void print() const; |
|
|
private: | private: |
SLPClientOptions(const SLPClientOptions& options); | SLPClientOptions(const SLPClientOptions& options); |
SLPClientOptions& operator=(const SLPClientOptions& options); | SLPClientOptions& operator=(const SLPClientOptions& options); |
|
|
CIMServerDiscoveryRep(); | CIMServerDiscoveryRep(); |
~CIMServerDiscoveryRep(); | ~CIMServerDiscoveryRep(); |
| |
Array<CIMServerDescription> lookup(const Array<Attribute> & criteria,const SLPClientOptions* options = NULL); |
Array<CIMServerDescription> lookup( |
|
const Array<Attribute>& criteria, |
|
const SLPClientOptions* options = NULL); |
| |
}; | }; |
| |
|
|
@param criteria Criteria for specifing which CIM Servers to lookup. | @param criteria Criteria for specifing which CIM Servers to lookup. |
@return the return value is array of connection descriptions. | @return the return value is array of connection descriptions. |
*/ | */ |
Array<CIMServerDescription> lookup(const Array<Attribute> & criteria,const SLPClientOptions* options = NULL); |
Array<CIMServerDescription> lookup( |
|
const Array<Attribute>& criteria, |
|
const SLPClientOptions* options = NULL); |
| |
private: | private: |
| |