Account
LibTmsApi 2.3.0 |
BSocketAddressINET Class Reference
IP aware socket address. More...
#include <BSocket.h>
Inheritance diagram for BSocketAddressINET:
Public Types | |
typedef struct sockaddr_in | SockAddrIP |
Public Types inherited from BSocketAddress | |
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. | |
uint32_t | port () |
Returns socket port. | |
BString | getString () |
Return string version of address <ip>:<port> | |
Public Member Functions inherited from BSocketAddress | |
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. | |
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. | |
Detailed Description
IP aware socket address.
Member Typedef Documentation
◆ SockAddrIP
typedef struct sockaddr_in BSocketAddressINET::SockAddrIP |
Member Function Documentation
◆ address()
uint32_t BSocketAddressINET::address | ( | ) |
Returns socket ip address.
◆ getHostName()
| static |
Get this hosts network name.
◆ getIpAddresses()
| static |
Get a list of all the IP addresses of this host.
◆ getIpAddressList()
Get a list of all the IP addresses of this host under hostname.
◆ getIpAddressListAll()
Get a list of all the IP addresses of this host looking at physical interfaces.
◆ getString()
BString BSocketAddressINET::getString | ( | ) |
Return string version of address <ip>:<port>
◆ port()
uint32_t BSocketAddressINET::port | ( | ) |
Returns socket port.
◆ set() [1/3]
◆ set() [2/3]
◆ set() [3/3]
BError BSocketAddressINET::set | ( | uint32_t | address, |
uint32_t | port | ||
) |
◆ setPort()
void BSocketAddressINET::setPort | ( | uint32_t | port | ) |
The documentation for this class was generated from the following files:
- /src/cern/tms/tms/beam/libBeam/BSocket.h
- /src/cern/tms/tms/beam/libBeam/BSocket.cpp
Generated by 1.9.7