Proud::CNetUtil Class Reference

Static Public Member Functions

static PROUD_API void GetLocalIPAddresses (CFastArray< String > &output)
 
static PROUD_API int GetIPVersionFromString (const String &rhs)
 
static PROUD_API bool IsAddressAny (const String &address)
 
static PROUD_API bool IsAddressUnspecified (const String &address)
 
static PROUD_API bool IsAddressPhysical (const String &address)
 
static PROUD_API bool IsAddressLoopback (const String &address)
 
static PROUD_API ErrorType EnableTcpOffload (bool enable)
 

Detailed Description

Network programming related utility class

Member Function Documentation

static PROUD_API ErrorType Proud::CNetUtil::EnableTcpOffload ( bool  enable)
static

TCP offload function will occur problem with some cheap network adapter that intergrated on the mother board. This method is controlled by Windows registry and it require restart a machine. It successfully applied, if

Returns
ErroType_Ok is true. and it require restart. ErrorType_PermissionDenied will occur, if you do not get aminitrator permission on Windows Vista or above version. ErrorType_Unexpected will return with other errors
static PROUD_API void Proud::CNetUtil::GetLocalIPAddresses ( CFastArray< String > &  output)
static

Gets every local IP addresses that host has.

static PROUD_API bool Proud::CNetUtil::IsAddressAny ( const String address)
static

Returns true if address is filled with 255 or 0xffff.

static PROUD_API bool Proud::CNetUtil::IsAddressLoopback ( const String address)
static

Returns true if addres is Loopback. For example, "127.0.0.1", "::1" or "localhost".

static PROUD_API bool Proud::CNetUtil::IsAddressPhysical ( const String address)
static

Returns true if address is not Any, Unspecified nor Loopback.

static PROUD_API bool Proud::CNetUtil::IsAddressUnspecified ( const String address)
static

Returns true if address is filled with 0.