sockpp
Modern C++ socket library wrapper
Classes | Functions
inet6_address.h File Reference

Class for a TCP/IP IPv6 socket address. More...

#include "sockpp/platform.h"
#include "sockpp/sock_address.h"
#include <iostream>
#include <string>
#include <cstring>

Go to the source code of this file.

Classes

class  sockpp::inet6_address
 Class that represents an internet (IPv6) address. More...
 

Functions

std::ostream & sockpp::operator<< (std::ostream &os, const inet6_address &addr)
 Stream inserter for the address. More...
 

Detailed Description

Class for a TCP/IP IPv6 socket address.

Author
Frank Pagliughi
SoRo Systems, Inc.
www.sorosys.com
Date
March 2019

Function Documentation

◆ operator<<()

std::ostream& sockpp::operator<< ( std::ostream &  os,
const inet6_address addr 
)

Stream inserter for the address.

This uses the simple dot notation of the address as returned from inet_ntop(). It does not attempt a host lookup.

Parameters
osThe output stream
addrThe address
Returns
A reference to the output stream.