Namespace ManusSDK::PlatformSpecific
Namespace List > ManusSDK > PlatformSpecific
Public Functions
| Type | Name |
|---|---|
| SDKReturnCode | CopyString (char *const p_Target, const size_t p_MaxLengthThatWillFitInTarget, const std::string & p_Source) Copy the given string into the given target. |
| void | GetAddressesForAllNetworkInterfaces (AddrInfo_t * p_LocalSocketDetails, AddrInfo_t & p_Hints, std::vector< sockaddr * > & p_Addresses) Get the socket addresses of all network interfaces. |
| int | GetLastError (void) Get the most recent error code. |
| std::string | GetManusCoreDir () Get the directory that manus core is in. |
| StringType_t | GetSettingsDir (const StringType_t & p_ManusCoreAppdataDir) Get the directory that the SDK settings are stored in. |
| uint64_t | GetSystemUptime () Get uptime of the system in ms. |
| bool | HandleRecvFromError (const int p_Result) Handle error codes produced by recvfrom(). |
| std::string | HostNameVectorToString (std::vector< NameInfoBufferType_t > & p_NodeBuffer) Convert the given vector to a string. |
| bool | IsApplicationRunning (const std::string & p_WindowName) |
| bool | PushApplicationToFront (const std::string & p_WindowName) |
| void | RemoveSocket (const Socket_t p_Socket) Stop the given socket. |
| bool | StartApplication (const std::string & p_Dir, const std::string & p_Args) Get the directory that the SDK settings are stored in. |
| int | StartSocketApi (void) Start the platform's socket API, if applicable. |
| int | StopSocketApi (void) Stop the platform's socket API, if applicable. |
Public Functions Documentation
function CopyString
SDKReturnCode ManusSDK::PlatformSpecific::CopyString (
char *const p_Target,
const size_t p_MaxLengthThatWillFitInTarget,
const std::string & p_Source
)
function GetAddressesForAllNetworkInterfaces
void ManusSDK::PlatformSpecific::GetAddressesForAllNetworkInterfaces (
AddrInfo_t * p_LocalSocketDetails,
AddrInfo_t & p_Hints,
std::vector< sockaddr * > & p_Addresses
)
function GetLastError
function GetManusCoreDir
function GetSettingsDir
StringType_t ManusSDK::PlatformSpecific::GetSettingsDir (
const StringType_t & p_ManusCoreAppdataDir
)
function GetSystemUptime
function HandleRecvFromError
function HostNameVectorToString
std::string ManusSDK::PlatformSpecific::HostNameVectorToString (
std::vector< NameInfoBufferType_t > & p_NodeBuffer
)
function IsApplicationRunning
function PushApplicationToFront
function RemoveSocket
function StartApplication
bool ManusSDK::PlatformSpecific::StartApplication (
const std::string & p_Dir,
const std::string & p_Args
)
function StartSocketApi
function StopSocketApi
The documentation for this class was generated from the following file api/cppSDK/SDKBase/PlatformSpecific.hpp