libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::IPAddressStr Struct Reference

字符串形式 IPv4 地址 / IPv4 address as string More...

#include <net.hpp>

Public Member Functions

IPAddressRaw ToRaw () const
 

Static Public Member Functions

static IPAddressStr FromRaw (const IPAddressRaw &raw)
 

Data Fields

char str [IPADDR_STRLEN] {}
 

Detailed Description

字符串形式 IPv4 地址 / IPv4 address as string

Definition at line 48 of file net.hpp.

Member Function Documentation

◆ FromRaw()

static IPAddressStr LibXR::IPAddressStr::FromRaw ( const IPAddressRaw & raw)
inlinestatic

Definition at line 52 of file net.hpp.

53 {
54 IPAddressStr s{};
55 raw.ToString(s.str);
56 return s;
57 }

◆ ToRaw()

IPAddressRaw LibXR::IPAddressStr::ToRaw ( ) const
inline

Definition at line 59 of file net.hpp.

60 {
61 return IPAddressRaw::FromString(str);
62 }

Field Documentation

◆ str

char LibXR::IPAddressStr::str[IPADDR_STRLEN] {}

Definition at line 50 of file net.hpp.

50{};

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