OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::Win::NetApi Struct Reference

#include <netutil.hpp>

Static Public Member Functions

static std::wstring get_itf_id (const std::string &itf_name)
 
static bool interface_connected (const std::wstring &iid_str)
 Check if an interface is connected and up.
 

Detailed Description

Definition at line 22 of file netutil.hpp.

Member Function Documentation

◆ get_itf_id()

static std::wstring openvpn::Win::NetApi::get_itf_id ( const std::string &  itf_name)
inlinestatic

Get the string interface UUID (with braces) for an interface alias name

Parameters
itf_namethe interface alias name
Returns
std::wstring the wide IID string

Definition at line 30 of file netutil.hpp.

◆ interface_connected()

static bool openvpn::Win::NetApi::interface_connected ( const std::wstring &  iid_str)
inlinestatic

Check if an interface is connected and up.

Parameters
iid_strthe interface GUID string
Returns
bool true if the interface is connected and up, false otherwise or in case an error happened

Definition at line 59 of file netutil.hpp.


The documentation for this struct was generated from the following file: