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 47 of file net.hpp.

Member Function Documentation

◆ FromRaw()

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

Definition at line 51 of file net.hpp.

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

◆ ToRaw()

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

Definition at line 58 of file net.hpp.

58{ return IPAddressRaw::FromString(str); }

Field Documentation

◆ str

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

Definition at line 49 of file net.hpp.

49{};

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