version 1.15, 2002/01/17 05:33:49
|
version 1.16, 2002/02/20 23:12:05
|
|
|
#include <direct.h> | #include <direct.h> |
#include <sys/stat.h> | #include <sys/stat.h> |
#include <sys/types.h> | #include <sys/types.h> |
|
#include <winsock.h> |
| |
#define ACCESS_EXISTS 0 | #define ACCESS_EXISTS 0 |
#define ACCESS_WRITE 2 | #define ACCESS_WRITE 2 |
|
|
return hostname; | return hostname; |
} | } |
| |
|
Uint32 System::lookupPort( |
|
const char * serviceName, |
|
Uint32 defaultPort) |
|
{ |
|
Uint32 localPort; |
|
|
|
struct servent *serv; |
|
|
|
// |
|
// Get wbem-local port from /etc/services |
|
// |
|
if ( (serv = getservbyname(serviceName, TCP)) != NULL ) |
|
{ |
|
localPort = serv->s_port; |
|
} |
|
else |
|
{ |
|
localPort = defaultPort; |
|
} |
|
|
|
return localPort; |
|
} |
|
|
String System::getPassword(const char* prompt) | String System::getPassword(const char* prompt) |
{ | { |
//ATTN: Implement this method to get password from User with no echo | //ATTN: Implement this method to get password from User with no echo |