scim
1.4.18
|
The class to hold a socket address. More...
#include <scim_socket.h>
Public Member Functions | |
SocketAddress (const String &addr=String()) | |
Constructor. More... | |
SocketAddress (const SocketAddress &addr) | |
Copy constructor. More... | |
~SocketAddress () | |
Destructor. More... | |
const SocketAddress & | operator= (const SocketAddress &addr) |
Copy operator. More... | |
bool | valid () const |
Check if this address is valid. More... | |
SocketFamily | get_family () const |
Get the family of this socket address. More... | |
bool | set_address (const String &addr) |
Set a new address. More... | |
String | get_address () const |
Get the address string. More... | |
const void * | get_data () const |
Get the internal data of this socket address, used by class Socket. More... | |
int | get_data_length () const |
Get the size of the internall data. More... | |
The class to hold a socket address.
Class SocketAddress encapsulates the details of socket address, like socketaddr_un and socketaddr_in.
A SocketAddress object can be constructed from an address string, which must start with one of the following prefixes:
Constructor.
addr | the address string. |
scim::SocketAddress::SocketAddress | ( | const SocketAddress & | addr | ) |
Copy constructor.
scim::SocketAddress::~SocketAddress | ( | ) |
Destructor.
const SocketAddress& scim::SocketAddress::operator= | ( | const SocketAddress & | addr | ) |
Copy operator.
bool scim::SocketAddress::valid | ( | ) | const |
Check if this address is valid.
SocketFamily scim::SocketAddress::get_family | ( | ) | const |
Get the family of this socket address.
bool scim::SocketAddress::set_address | ( | const String & | addr | ) |
Set a new address.
addr | the new address string. |
String scim::SocketAddress::get_address | ( | ) | const |
Get the address string.
const void* scim::SocketAddress::get_data | ( | ) | const |
Get the internal data of this socket address, used by class Socket.
int scim::SocketAddress::get_data_length | ( | ) | const |
Get the size of the internall data.