(file) Return to CIMServerDiscovery.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Client

Diff for /pegasus/src/Pegasus/Client/CIMServerDiscovery.cpp between version 1.8 and 1.9

version 1.8, 2006/04/18 19:08:42 version 1.9, 2006/11/14 18:34:48
Line 29 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Tony Fiorentino (fiorentino_tony@emc.com)  
 //  
 // Modified By:  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #include "CIMServerDiscovery.h" #include "CIMServerDiscovery.h"
Line 45 
Line 41 
 // Filthy hack. User is responsible for adjusting values, // Filthy hack. User is responsible for adjusting values,
 // and for new/delete of any struct used // and for new/delete of any struct used
 ///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
 SLPClientOptions::SLPClientOptions(){  
   SLPClientOptions::SLPClientOptions()
   {
         //initialise everything         //initialise everything
         target_address  = NULL;         target_address  = NULL;
         local_interface  = NULL;         local_interface  = NULL;
Line 56 
Line 54 
         predicate = NULL;         predicate = NULL;
         use_directory_agent = false;         use_directory_agent = false;
 } }
 SLPClientOptions::~SLPClientOptions(){  
   SLPClientOptions::~SLPClientOptions()
   {
         // free all pointers         // free all pointers
         free(target_address);         free(target_address);
         free(local_interface);         free(local_interface);
Line 65 
Line 65 
         free(service_type);         free(service_type);
         free(predicate);         free(predicate);
 } }
 void SLPClientOptions::print() const{  
   void SLPClientOptions::print() const
   {
         printf("target_address %s\n",target_address!=NULL?target_address:"NULL");         printf("target_address %s\n",target_address!=NULL?target_address:"NULL");
         printf("local_interface %s\n",local_interface!=NULL?local_interface:"NULL");         printf("local_interface %s\n",local_interface!=NULL?local_interface:"NULL");
         printf("target_port %d\n",target_port);         printf("target_port %d\n",target_port);
Line 76 
Line 78 
         printf("use_directory_agent %s\n",use_directory_agent==0?"false":"true");         printf("use_directory_agent %s\n",use_directory_agent==0?"false":"true");
 } }
  
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  
 #ifdef PEGASUS_SLP_CLIENT_INTERFACE_WRAPPER #ifdef PEGASUS_SLP_CLIENT_INTERFACE_WRAPPER
Line 84 
Line 85 
 #elif OPENSLP_SLP_CLIENT_INTERFACE_WRAPPER #elif OPENSLP_SLP_CLIENT_INTERFACE_WRAPPER
 # include "OpenSLPWrapper.cpp" # include "OpenSLPWrapper.cpp"
 #else #else
   
 // No interface wrapper selected // No interface wrapper selected
   
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
   
 ///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
 // CIMServerDiscoveryRep // CIMServerDiscoveryRep
 ///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
   
 CIMServerDiscoveryRep::CIMServerDiscoveryRep() CIMServerDiscoveryRep::CIMServerDiscoveryRep()
 { {
 } }
Line 97 
Line 102 
 { {
 } }
  
 Array<CIMServerDescription>  Array<CIMServerDescription> CIMServerDiscoveryRep::lookup(
 CIMServerDiscoveryRep::lookup(const Array<Attribute> & criteria, const SLPClientOptions* options)      const Array<Attribute>& criteria,
       const SLPClientOptions* options)
 { {
   Array<CIMServerDescription> connections;   Array<CIMServerDescription> connections;
   return connections;   return connections;
Line 122 
Line 128 
     delete _rep;     delete _rep;
 } }
  
 Array<CIMServerDescription>  Array<CIMServerDescription> CIMServerDiscovery::lookup(
 CIMServerDiscovery::lookup(const SLPClientOptions* options)      const SLPClientOptions* options)
 { {
   Array<Attribute> criteria;   Array<Attribute> criteria;
   return _rep->lookup(criteria,options);   return _rep->lookup(criteria,options);
 } }
  
 Array<CIMServerDescription>  Array<CIMServerDescription> CIMServerDiscovery::lookup(
 CIMServerDiscovery::lookup(const Array<Attribute> & criteria, const SLPClientOptions* options)      const Array<Attribute>& criteria,
       const SLPClientOptions* options)
 { {
   return _rep->lookup(criteria,options);   return _rep->lookup(criteria,options);
 } }


Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2