Electronics and Software
Engineering Innovation
Beam-lib  2.15.1

Socket Address. More...

#include <BSocket.h>

Inheritance diagram for BSocketAddress:
BSocketAddressINET

Public Types

typedef struct sockaddr SockAddr
 

Public Member Functions

 BSocketAddress ()
 
 BSocketAddress (const BSocketAddress &add)
 
 BSocketAddress (SockAddr *address, int len)
 
 ~BSocketAddress ()
 
BError set (SockAddr *address, int len)
 
const SockAddrraw () const
 
int len () const
 
BString getString () const
 Return string version of address <ip>:<port> More...
 
BSocketAddressoperator= (const BSocketAddress &add)
 
 operator const SockAddr * () const
 
int operator== (const BSocketAddress &add) const
 
int operator!= (const BSocketAddress &add) const
 

Private Attributes

int olen
 
SockAddroaddress
 

Detailed Description

Socket Address.

Member Typedef Documentation

◆ SockAddr

typedef struct sockaddr BSocketAddress::SockAddr

Constructor & Destructor Documentation

◆ BSocketAddress() [1/3]

BSocketAddress::BSocketAddress ( )

◆ BSocketAddress() [2/3]

BSocketAddress::BSocketAddress ( const BSocketAddress add)

◆ BSocketAddress() [3/3]

BSocketAddress::BSocketAddress ( SockAddr address,
int  len 
)

◆ ~BSocketAddress()

BSocketAddress::~BSocketAddress ( )

Member Function Documentation

◆ getString()

BString BSocketAddress::getString ( ) const

Return string version of address <ip>:<port>

◆ len()

int BSocketAddress::len ( ) const

◆ operator const SockAddr *()

BSocketAddress::operator const SockAddr * ( ) const
inline

◆ operator!=()

int BSocketAddress::operator!= ( const BSocketAddress add) const

◆ operator=()

BSocketAddress & BSocketAddress::operator= ( const BSocketAddress add)

◆ operator==()

int BSocketAddress::operator== ( const BSocketAddress add) const

◆ raw()

const BSocketAddress::SockAddr * BSocketAddress::raw ( ) const

◆ set()

BError BSocketAddress::set ( SockAddr address,
int  len 
)

Member Data Documentation

◆ oaddress

SockAddr* BSocketAddress::oaddress
private

◆ olen

int BSocketAddress::olen
private

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