version 1.9, 2006/04/18 19:08:44
|
version 1.9.28.1, 2007/07/03 21:50:07
|
|
|
// test if a host is given at all not necessary here | // test if a host is given at all not necessary here |
// if there is no we failed to detect that before anyway | // if there is no we failed to detect that before anyway |
// wonder how that should possibly happen??? | // wonder how that should possibly happen??? |
|
HostLocator addr(inHost); |
// splitting the port from hostname |
Uint32 portNumber = 0; |
int i = inHost.find(":"); |
if (addr.isPortSpecified()) |
// only if there is a ":" we should split a port address from hostname string |
|
if (i > 0) |
|
{ |
|
inPort = inHost.subString(i+1); |
|
inHost.remove(i); |
|
} else |
|
{ | { |
// if there is no : , there is no port, we use the default empty port |
inHost = addr.getHost(); |
inPort = String::EMPTY; |
inPort = addr.getPortString(); |
} | } |
|
|
return getTargetCIMOM(inHost, inPort, inNameSpace); | return getTargetCIMOM(inHost, inPort, inNameSpace); |
} | } |
| |