mn::device::basic_network_device Class Referenceabstract
#include <mn_network_device.hpp>
Inheritance diagram for mn::device::basic_network_device:
Collaboration diagram for mn::device::basic_network_device:Public Types | |
| using | ip4_adress_t = net::basic_ip4_address |
Public Member Functions | |
| basic_network_device () | |
| basic_network_device (char prefix[8]) | |
| virtual int | set_ipinfo (const ip4_adress_t &local_ip, const ip4_adress_t &gateway, const ip4_adress_t &subnet)=0 |
| Set IPv4 infos, local ip, gateway and subnet. More... | |
| virtual int | get_ipinfo (ip4_adress_t &local_ip, ip4_adress_t &gateway, ip4_adress_t &subnet)=0 |
| Get IPv4 infos, local ip, gateway and subnet. More... | |
| virtual const char * | get_mac ()=0 |
| Get the MAC of the WiFi AP device as string. More... | |
Public Member Functions inherited from mn::device::basic_device | |
| basic_device (char prefix[8]) | |
| virtual int | open ()=0 |
| Opens device. More... | |
| virtual int | stop ()=0 |
| Closes device. More... | |
| virtual bool | is_enable ()=0 |
| virtual bool | is_stream_support ()=0 |
| const char * | get_prefix () |
Additional Inherited Members | |
Protected Attributes inherited from mn::device::basic_device | |
| const char * | m_prefix |
Member Typedef Documentation
◆ ip4_adress_t
Constructor & Destructor Documentation
◆ basic_network_device() [1/2]
|
inline |
◆ basic_network_device() [2/2]
|
inline |
Member Function Documentation
◆ get_ipinfo()
|
pure virtual |
Get IPv4 infos, local ip, gateway and subnet.
- Returns
- If 0 then get all address and -1 if not.
Implemented in mn::device::basic_wifi_ap.
◆ get_mac()
|
pure virtual |
Get the MAC of the WiFi AP device as string.
- Returns
- The MAC of the WiFi AP device as string, on error return nullptr.
Implemented in mn::device::basic_wifi_ap.
◆ set_ipinfo()
|
pure virtual |
Set IPv4 infos, local ip, gateway and subnet.
- Returns
- If 0 then set all address and -1 if not.
Implemented in mn::device::basic_wifi_ap.
The documentation for this class was generated from the following file: