dca_interface  6.3.4
dca_ipr::Ipv4 Class Reference

#include <ipr_ipdata.h>

Inheritance diagram for dca_ipr::Ipv4:
dca_ipr::Ip

Detailed Description

Definition of the Ipv4 class.

The Ipv4 class defines a class that is used for classification of IP version 4 addresses.

Definition at line 65 of file ipr_ipdata.h.

Public Member Functions

 Ipv4 (unsigned int ipaddr)
 Constructs an Ipv4 class with a given numeric IP address of IPv4. More...
 
 Ipv4 (const char *buffer, size_t buffer_len)
 Constructs an Ipv4 class using a string represenatation e.g. "127.0.0.1". More...
 
- Public Member Functions inherited from dca_ipr::Ip
 Ip (const char *buffer, size_t buffer_len)
 Constructs an Ip class with a given C-string and its length. More...
 

Constructor & Destructor Documentation

◆ Ipv4() [1/2]

dca_ipr::Ipv4::Ipv4 ( unsigned int  ipaddr)

Constructs an Ipv4 class with a given numeric IP address of IPv4.

Parameters
[in]ipaddrNumeric representation of the IPv4 address as a 32 bit unsigned integer

◆ Ipv4() [2/2]

dca_ipr::Ipv4::Ipv4 ( const char *  buffer,
size_t  buffer_len 
)

Constructs an Ipv4 class using a string represenatation e.g. "127.0.0.1".

Parameters
[in]bufferConstant buffer point to an ASCII 7-bit string of the IP address
[in]buffer_lenThe length of the string the buffer points to
Note
Since the buffer will not be copied it must exist until the classification call returns, and for the lifetime of the Ipv4 class.

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