Sponge
CS144's user-space TCP library
Public Member Functions | Public Attributes | List of all members
Address::Raw Class Reference

Wrapper around sockaddr_storage. More...

#include <address.hh>

Public Member Functions

 operator const sockaddr * () const
 Converts Raw to const sockaddr *. More...
 
 operator sockaddr * ()
 Converts Raw to sockaddr *. More...
 

Public Attributes

sockaddr_storage storage {}
 The wrapped struct itself. More...
 

Detailed Description

Wrapper around sockaddr_storage.

A sockaddr_storage is enough space to store any socket address (IPv4 or IPv6).

Definition at line 17 of file address.hh.

Member Function Documentation

◆ operator const sockaddr *()

Address::Raw::operator const sockaddr * ( ) const

Converts Raw to const sockaddr *.

Definition at line 18 of file address.cc.

◆ operator sockaddr *()

Address::Raw::operator sockaddr * ( )

Converts Raw to sockaddr *.

Definition at line 15 of file address.cc.

Member Data Documentation

◆ storage

sockaddr_storage Address::Raw::storage {}

The wrapped struct itself.

Definition at line 19 of file address.hh.


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