senf::UNSocketAddress Class Reference
[Addressing classes]

Unix domain socket address. More...

#include <senf/Socket/Protocols/UN/UNAddressing.hh>

Inheritance diagram for senf::UNSocketAddress:
Inheritance graph
[legend]

List of all members.


Detailed Description

Unix domain socket address.

UNSocketAddress wraps the standard sockaddr_un datatype. It provides simple accessor methods to access the path.

Implementation note:
This implementation is based on sockaddr_un.

Definition at line 51 of file UNAddressing.hh.


Public Member Functions

  UNSocketAddress ()
  UNSocketAddress (std::string const &path)
  Construct an address constant from given path.
  UNSocketAddress (const UNSocketAddress &other)
UNSocketAddress operator= (const UNSocketAddress &other)
std::string  path () const
  Return path as string.
void  path (std::string const &path)

Static Public Attributes

static short const  addressFamily = AF_UNIX

Related Functions

(Note that these are not member functions.)

std::ostream &  operator<< (std::ostream &os, UNSocketAddress const &addr)
  Write path to os.

Constructor & Destructor Documentation

senf::UNSocketAddress::
UNSocketAddress ()

Definition at line 36 of file UNAddressing.cci.

senf::UNSocketAddress::
UNSocketAddress ( std::string const &  path )

Construct an address constant from given path.

Definition at line 40 of file UNAddressing.cci.

senf::UNSocketAddress::
UNSocketAddress ( const UNSocketAddress other )

Definition at line 46 of file UNAddressing.cci.


Member Function Documentation

senf::UNSocketAddress & senf::UNSocketAddress::
operator= ( const UNSocketAddress other )

Definition at line 50 of file UNAddressing.cci.

void senf::UNSocketAddress::
path ( std::string const &  path )

Definition at line 35 of file UNAddressing.cc.

std::string senf::UNSocketAddress::
path ()

Return path as string.

Definition at line 56 of file UNAddressing.cci.


Friends And Related Function Documentation

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

Write path to os.


Member Data Documentation

short const senf::UNSocketAddress::addressFamily = AF_UNIX
[static]

Definition at line 55 of file UNAddressing.hh.


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