GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GU_NET_ADDRINFO (3)

NAME

gu::net::Addrinfo - Class encapsulating struct addrinfo.

CONTENTS

Synopsis

SYNOPSIS

#include <gu_resolver.hpp>

    Public Member Functions

    Addrinfo (const addrinfo &ai)    
Addrinfo (const Addrinfo &ai)    
Addrinfo (const Addrinfo &ai, const Sockaddr &sa)    
~Addrinfo ()    
int get_family () const    
int get_socktype () const    
int get_protocol () const    
socklen_t get_addrlen () const    
Sockaddr get_addr () const    
std::string to_string () const

Detailed Description

Class encapsulating struct addrinfo.

Class encapsulating struct addrinfo and providing interface to access addrinfo fields.

Constructor & Destructor Documentation

    gu::net::Addrinfo::Addrinfo (const addrinfo & ai)

Default constructor.

Parameters:

ai Const reference to addrinfo struct

gu::net::Addrinfo::Addrinfo (const Addrinfo & ai)

Copy costructor.

Parameters:

ai Const reference to Addrinfo object to copy

gu::net::Addrinfo::Addrinfo (const Addrinfo & ai, const Sockaddr & sa)

Copy constructor that replaces sockaddr struct.

Parameters:

ai Const reference to Addrinfo object to copy
sa Const reference to Sockaddr struct that replaces sockaddr data

    gu::net::Addrinfo::~Addrinfo ()

Destructor.

Member Function Documentation

Sockaddr gu::net::Addrinfo::get_addr () const [inline]

Get associated Sockaddr object.

Returns:

Associated Sockaddr object

socklen_t gu::net::Addrinfo::get_addrlen () const [inline]

Get length of associated sockaddr struct

Returns:

Length of associated sockaddr struct

int gu::net::Addrinfo::get_family () const [inline]

Get address family, AF_INET, AF_INET6 etc.

Returns:

Address family

int gu::net::Addrinfo::get_protocol () const [inline]

Get protocol.

Returns:

Protocol

int gu::net::Addrinfo::get_socktype () const [inline]

Get socket type, SOCK_STREAM, SOCK_DGRAM etc

Returns:

Socket type

    std::string gu::net::Addrinfo::to_string () const

Get string representation of the addrinfo.

Returns:

String representation of the addrinfo

Author

Generated automatically by Doxygen for GCS from the source code.

Search for    or go to Top of page |  Section 3 |  Main Index


Version 0.2.3 GU::NET::ADDRINFO (3) Sun Apr 3 2016

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.