|
libBsdSockets
C++ Wrapper classes to the BSD Socket API
|
Base class for all addresses. More...
#include <Address.h>

Public Types | |
| typedef std::shared_ptr< Address > | Ptr |
Public Member Functions | |
| virtual | ~Address () |
| SocketDomain | getSocketDomain () const |
| SocketType | getSocketType () const |
| int | getProtocol () const |
| virtual std::shared_ptr< LowLevelAddress > | makeTempLowLevelAddress () const =0 |
| virtual Address::Ptr | create (std::shared_ptr< LowLevelAddress > lowLevelAddress) const =0 |
| virtual const LowLevelAddress & | getLowLevelAddress () const =0 |
Protected Member Functions | |
| Address (SocketDomain theSocketDomain, SocketType theSocketType, int theProtocol) | |
| Address (const Address &rhs) | |
Base class for all addresses.
Provides common information for all types of addresses and a pure-virtual method to access the LowLevelAddress.
| typedef std::shared_ptr<Address> BsdSockets::Address::Ptr |
|
virtual |
Virtual destructor to support derived classes
Definition at line 22 of file Address.cpp.
|
protected |
Create from parameters
| theSocketDomain | the SocketDomain for the Address |
| theSocketType | the SocketType for the Address |
| theProtocol | the low-level protocol for the address |
Definition at line 25 of file Address.cpp.
|
protected |
Copy from another Address
| rhs | the Address to copy |
Definition at line 30 of file Address.cpp.
|
pure virtual |
Create a new Address from a LowLevelAddress using this Address as a template.
| lowLevelAddress | data to create from |
Implemented in BsdSockets::LocalAddress, and BsdSockets::InetAddress.
|
pure virtual |
Method for derived classes to provide access to the LowLevelAddress information
Implemented in BsdSockets::LocalAddress, and BsdSockets::InetAddress.
| int BsdSockets::Address::getProtocol | ( | ) | const |
Definition at line 43 of file Address.cpp.
| SocketDomain BsdSockets::Address::getSocketDomain | ( | ) | const |
Definition at line 35 of file Address.cpp.
| SocketType BsdSockets::Address::getSocketType | ( | ) | const |
Definition at line 39 of file Address.cpp.
|
pure virtual |
Implemented in BsdSockets::LocalAddress, and BsdSockets::InetAddress.