LibTmsApi
2.0.0
|
IP aware socket address. More...
#include <BSocket.h>
Public Types | |
typedef struct sockaddr_in | SockAddrIP |
![]() | |
typedef struct sockaddr | SockAddr |
Public Member Functions | |
BError | set (BString hostName, uint32_t port) |
BError | set (uint32_t address, uint32_t port) |
BError | set (BString hostName, BString service, BString type) |
void | setPort (uint32_t port) |
uint32_t | address () |
Returns socket ip address. More... | |
uint32_t | port () |
Returns socket port. More... | |
BString | getString () |
Return string version of address <ip>:<port> More... | |
![]() | |
BSocketAddress () | |
BSocketAddress (const BSocketAddress &add) | |
BSocketAddress (SockAddr *address, int len) | |
~BSocketAddress () | |
BError | set (SockAddr *address, int len) |
const SockAddr * | raw () const |
int | len () const |
BSocketAddress & | operator= (const BSocketAddress &add) |
operator const SockAddr * () const | |
int | operator== (const BSocketAddress &add) const |
int | operator!= (const BSocketAddress &add) const |
Static Public Member Functions | |
static BString | getHostName () |
Get this hosts network name. More... | |
static BList< uint32_t > | getIpAddresses () |
Get a list of all the IP addresses of this host. More... | |
static BList< BString > | getIpAddressList () |
Get a list of all the IP addresses of this host under hostname. More... | |
static BList< BString > | getIpAddressListAll () |
Get a list of all the IP addresses of this host looking at physical interfaces. More... | |
IP aware socket address.
typedef struct sockaddr_in BSocketAddressINET::SockAddrIP |
uint32_t BSocketAddressINET::address | ( | ) |
Returns socket ip address.
|
static |
Get this hosts network name.
|
static |
Get a list of all the IP addresses of this host.
Get a list of all the IP addresses of this host under hostname.
Get a list of all the IP addresses of this host looking at physical interfaces.
BString BSocketAddressINET::getString | ( | ) |
Return string version of address <ip>:<port>
uint32_t BSocketAddressINET::port | ( | ) |
Returns socket port.
BError BSocketAddressINET::set | ( | uint32_t | address, |
uint32_t | port | ||
) |
void BSocketAddressINET::setPort | ( | uint32_t | port | ) |