36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
#ifndef NETWORK_UTIL_H
|
|
#define NETWORK_UTIL_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace Util
|
|
{
|
|
namespace Network
|
|
{
|
|
//>---------------------------------------------------------------------
|
|
// Function: IsIpAddress
|
|
//
|
|
// Purpose:
|
|
//----------------------------------------------------------------------
|
|
// Arguments:
|
|
//----------------------------------------------------------------------
|
|
// Return Value:
|
|
//<---------------------------------------------------------------------
|
|
bool IsIpAddress(const std::string& ipAddress);
|
|
|
|
//>---------------------------------------------------------------------
|
|
// Function: convertHostnameToIp
|
|
//
|
|
// Purpose:
|
|
//----------------------------------------------------------------------
|
|
// Arguments:
|
|
//----------------------------------------------------------------------
|
|
// Return Value:
|
|
//<---------------------------------------------------------------------
|
|
std::string ConvertHostnameToIp(std::string hostname);
|
|
}
|
|
}
|
|
|
|
#endif
|