LibBeamApi  1.3.0
Public Types | Public Member Functions | Static Public Member Functions
BSocketAddressINET Class Reference

IP aware socket address. More...

#include <BSocket.h>

Inheritance diagram for BSocketAddressINET:
BSocketAddress

List of all members.

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< BStringgetIpAddressList ()
 Get a list of all the IP addresses of this host under hostname.
static BList< BStringgetIpAddressListAll ()
 Get a list of all the IP addresses of this host looking at physical interfaces.

Detailed Description

IP aware socket address.


Member Typedef Documentation

typedef struct sockaddr_in BSocketAddressINET::SockAddrIP

Member Function Documentation

uint32_t BSocketAddressINET::address ( )

Returns socket ip address.

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.

BList< BString > BSocketAddressINET::getIpAddressList ( ) [static]

Get a list of all the IP addresses of this host under hostname.

BList< BString > BSocketAddressINET::getIpAddressListAll ( ) [static]

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 ( BString  hostName,
uint32_t  port 
)
BError BSocketAddressINET::set ( uint32_t  address,
uint32_t  port 
)
BError BSocketAddressINET::set ( BString  hostName,
BString  service,
BString  type 
)
void BSocketAddressINET::setPort ( uint32_t  port)

The documentation for this class was generated from the following files: