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

Diff for /pegasus/src/Pegasus/Common/CIMObjectPath.cpp between version 1.31 and 1.32

version 1.31, 2003/11/11 21:35:39 version 1.32, 2003/11/11 22:22:41
Line 43 
Line 43 
 #include "XmlWriter.h" #include "XmlWriter.h"
 #include "XmlReader.h" #include "XmlReader.h"
 #include "ArrayInternal.h" #include "ArrayInternal.h"
 #include "CIMOMPort.h"  
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
Line 448 
Line 447 
     String& host)     String& host)
 { {
     // See if there is a host name (true if it begins with "//"):     // See if there is a host name (true if it begins with "//"):
     // Host is of the from <hostname>-<port> and begins with "//"      // Host is of the form <hostname>:<port> and begins with "//"
     // and ends with "/":     // and ends with "/":
  
     if (p[0] != '/' || p[1] != '/')     if (p[0] != '/' || p[1] != '/')
Line 489 
Line 488 
         }         }
      }      }
  
     // We now expect a port (or default the port).      // Check for a port:
  
     if (*q == ':')     if (*q == ':')
     {     {
Line 501 
Line 500 
  
         while (isdigit(*q))         while (isdigit(*q))
             q++;             q++;
       }
  
         // Finally, assign the host name:         // Finally, assign the host name:
  
         host.assign(p, q - p);         host.assign(p, q - p);
     }  
     else  
     {  
         host.assign(p, q - p);  
   
         // Assign the default port number:  
   
         host.append(":");  
         host.append(PEGASUS_CIMOM_DEFAULT_PORT_STRING);  
     }  
  
     // Check for slash terminating the entire sequence:     // Check for slash terminating the entire sequence:
  


Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2