#include <BSocket.h>
Public Types | |
typedef struct sockaddr_in | SockAddrIP |
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. | |
uint32_t | port () |
Returns socket port. | |
BString | getString () |
Return string version of address <ip>:<port>. | |
Static Public Member Functions | |
static BString | getHostName () |
Get this hosts network name. | |
static BList< uint32_t > | getIpAddresses () |
Get a list of all the IP addresses of this host. | |
static BList< BString > | getIpAddressList () |
Get a list of all the IP addresses of this host under hostname. | |
static BList< BString > | getIpAddressListAll () |
Get a list of all the IP addresses of this host looking at physical interfaces. |
typedef struct sockaddr_in BSocketAddressINET::SockAddrIP [read] |
BError BSocketAddressINET::set | ( | uint32_t | address, | |
uint32_t | port | |||
) |
void BSocketAddressINET::setPort | ( | uint32_t | port | ) |
uint32_t BSocketAddressINET::address | ( | ) |
Returns socket ip address.
uint32_t BSocketAddressINET::port | ( | ) |
Returns socket port.
BString BSocketAddressINET::getString | ( | ) |
Return string version of address <ip>:<port>.
BString BSocketAddressINET::getHostName | ( | ) | [static] |
Get this hosts network name.
BList< uint32_t > BSocketAddressINET::getIpAddresses | ( | ) | [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.