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

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

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

Go to the source code of this file.

Classes

class  sockpp::inet_address
 Class that represents an internet (IPv4) address. More...
 

Functions

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

Detailed Description

Class for a TCP/IP socket address.

Author
Frank Pagliughi
SoRo Systems, Inc.
www.sorosys.com
Date
February 2014

Function Documentation

◆ operator<<()

std::ostream& sockpp::operator<< ( std::ostream &  os,
const inet_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.