OnixS BME SENAF Handler C++ library  2.2.1
API documentation
IPAddress Struct Reference

#include <OnixS/Senaf/MarketData/IPAddress.h>

Public Types

enum  { ADDR_SIZE = 4 }
 

Public Member Functions

 IPAddress ()
 
 IPAddress (unsigned char addr[ADDR_SIZE])
 
 IPAddress (const IPAddress &other)
 
IPAddressoperator= (const IPAddress &other)
 
std::string toString () const
 

Static Public Member Functions

static IPAddress parse (const std::string &str)
 

Public Attributes

unsigned char addr [ADDR_SIZE]
 

Detailed Description

Definition at line 33 of file IPAddress.h.

Member Enumeration Documentation

anonymous enum
Enumerator
ADDR_SIZE 

Definition at line 35 of file IPAddress.h.

Constructor & Destructor Documentation

IPAddress ( )

Default constructor.

IPAddress ( unsigned char  addr[ADDR_SIZE])
explicit

Constructor.

Parameters
addr4 bytes of the IPv4 address.
IPAddress ( const IPAddress other)

Copy constructor.

Parameters
otherIP address to be copied.

Member Function Documentation

IPAddress& operator= ( const IPAddress other)

Assign operator.

static IPAddress parse ( const std::string &  str)
static

Parse IP address from string.

Returns
IP address object.
Exceptions
Errorobject.
std::string toString ( ) const

Returns string representation.

Member Data Documentation

unsigned char addr[ADDR_SIZE]

IPv4 address.

Definition at line 41 of file IPAddress.h.


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