|
Free Electron
|
BSD socket address wrapper. More...
#include <Socket.h>
Public Member Functions | |
| struct sockaddr * | ptr (void) |
| Access pointer to underlying (struct sockaddr *) More... | |
| int | size (void) |
| Return size of address. More... | |
| void | setPort (FE_UWORD port) |
| Set the port. More... | |
| void | setAddress (const U32 address) |
| Set the address. More... | |
| void | setAddress (const String &host) |
| Set the address. More... | |
| String | hostname (void) |
| Return the hostname for the address. More... | |
| FE_UWORD | port (void) |
Static Public Member Functions | |
| static U32 | getIp4Address (const String &host) |
| Return the address. More... | |
Protected Attributes | |
| struct sockaddr_in | m_sockaddr |
BSD socket address wrapper.
|
static |
Return the address.
References fe::String::c_str(), and fe::String::empty().
| String fe::ext::SockAddr::hostname | ( | void | ) |
Return the hostname for the address.
|
inline |
Access pointer to underlying (struct sockaddr *)
|
inline |
Set the address.
| void fe::ext::SockAddr::setAddress | ( | const String & | host | ) |
Set the address.
This may either be the hostname or the dot notation address.
|
inline |
|
inline |
Return size of address.
Referenced by fe::ext::Socket::accept().
1.8.13