Clapkit
Loading...
Searching...
No Matches
CKNetworking Namespace Reference

Networking (MacTCP) functionality globals. More...

Functions

bool IsAvailable ()
 Check if MacTCP is installed and available.
 
bool IsInitialized ()
 Check if networking has been initialized by calling Initialize
 
CKError Initialize ()
 Try to open the MacTCP driver.
 
bool Deinitialize ()
 
void Loop (std::vector< CKNetBaseSocket * > sockets)
 
CKIPAddress GetLocalIP ()
 Return the IP Address of the current device.
 
CKError ResolveName (const char *hostname, CKIPAddress *result)
 
short GetDriverRefNum ()
 

Detailed Description

Networking (MacTCP) functionality globals.

Function Documentation

◆ Deinitialize()

bool CKNetworking::Deinitialize ( )
Returns

◆ GetDriverRefNum()

short CKNetworking::GetDriverRefNum ( )

◆ GetLocalIP()

CKIPAddress CKNetworking::GetLocalIP ( )

Return the IP Address of the current device.

Returns
Returns a blank (0.0.0.0) IP address on failure.

◆ Initialize()

CKError CKNetworking::Initialize ( )

Try to open the MacTCP driver.

Returns
CKPass on success

◆ IsAvailable()

bool CKNetworking::IsAvailable ( )

Check if MacTCP is installed and available.

Returns

◆ IsInitialized()

bool CKNetworking::IsInitialized ( )

Check if networking has been initialized by calling Initialize

Returns

◆ Loop()

void CKNetworking::Loop ( std::vector< CKNetBaseSocket * >  sockets)

◆ ResolveName()

CKError CKNetworking::ResolveName ( const char *  hostname,
CKIPAddress result 
)