join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::BasicEndpoint< Protocol > Class Template Reference

basic endpoint class. More...

#include <endpoint.hpp>

Inheritance diagram for join::BasicEndpoint< Protocol >:

Public Member Functions

constexpr BasicEndpoint () noexcept
 default constructor.
 
 BasicEndpoint (const struct sockaddr *addr, socklen_t len) noexcept
 create instance using socket address.
 
struct sockaddr * addr () noexcept
 get socket address.
 
const struct sockaddr * addr () const noexcept
 get socket address.
 

Protected Attributes

struct sockaddr_storage _addr = {}
 socket address storage.
 

Detailed Description

template<class Protocol>
class join::BasicEndpoint< Protocol >

basic endpoint class.

Constructor & Destructor Documentation

◆ BasicEndpoint() [1/2]

template<class Protocol >
join::BasicEndpoint< Protocol >::BasicEndpoint ( )
inlineconstexprnoexcept

default constructor.

◆ BasicEndpoint() [2/2]

template<class Protocol >
join::BasicEndpoint< Protocol >::BasicEndpoint ( const struct sockaddr * addr,
socklen_t len )
inlinenoexcept

create instance using socket address.

Parameters
addrsocket address.
lensocket address length.

Member Function Documentation

◆ addr() [1/2]

template<class Protocol >
const struct sockaddr * join::BasicEndpoint< Protocol >::addr ( ) const
inlinenoexcept

get socket address.

Returns
socket address.

◆ addr() [2/2]

template<class Protocol >
struct sockaddr * join::BasicEndpoint< Protocol >::addr ( )
inlinenoexcept

get socket address.

Returns
socket address.

Member Data Documentation

◆ _addr

template<class Protocol >
struct sockaddr_storage join::BasicEndpoint< Protocol >::_addr = {}
protected

socket address storage.


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