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

Generic address class for sockpp. More...

#include "sockpp/platform.h"
#include <cstring>
#include <stdexcept>

Go to the source code of this file.

Classes

class  sockpp::sock_address
 Generic socket address. More...
 
class  sockpp::sock_address_any
 Generic socket address. More...
 

Functions

bool sockpp::operator== (const sock_address &lhs, const sock_address &rhs)
 Determines if the two objects refer to the same address. More...
 
bool sockpp::operator!= (const sock_address &lhs, const sock_address &rhs)
 Determines if the two objects refer to the different address. More...
 

Detailed Description

Generic address class for sockpp.

Author
Frank Pagliughi
SoRo Systems, Inc.
www.sorosys.com
Date
June 2017

Function Documentation

◆ operator!=()

bool sockpp::operator!= ( const sock_address lhs,
const sock_address rhs 
)
inline

Determines if the two objects refer to the different address.

Parameters
lhsA socket address
rhsA socket address
Returns
true if lhs and rhs refer to different address, false if they refer to the same address.

◆ operator==()

bool sockpp::operator== ( const sock_address lhs,
const sock_address rhs 
)
inline

Determines if the two objects refer to the same address.

Parameters
lhsA socket address
rhsA socket address
Returns
true if lhs and rhs refer to the same address, false otherwise.