Socket_Address

Inheritance:

Methods of Socket_Address:

SocketAddress
Socket_Address::Socket_Address(short int port = (0));

Function name : Socket_Address
Description : Constructor that lets us set a port value
Function name : Socket_Address Constructor
Description : Copy Constructor

clear
void Socket_Address::clear(void);

Function name : clear
Description : Set the internal values to a suitable known value

getIp
string Socket_Address::get_ip(void) const;

Function name : get_ip
Description : Return the ip address portion in dot notation string

GetIPAddressRaw
unsigned long int Socket_Address::GetIPAddressRaw(void) const;

Function name : Socket_Address::GetIPAdddressRaw
Description : Return a RAW sockaddr_in

getIpPort
string Socket_Address::get_ip_port(void) const;

Function name : get_ip_port
Description : Return the ip address/port in dot notation string

getPort
unsigned short int Socket_Address::get_port(void) const;

Function name : get_port
Description : Get the port portion as an integer

isMcastRange
bool Socket_Address::isMcastRange(void);

Function name : isMcastRange
Description : return true if the address is in the mcast range.

operator <
bool Socket_Address::operator <(Socket_Address const &in) const;

Function name : <
Description :

operator ==
bool Socket_Address::operator ==(Socket_Address const &in) const;

Function name : Socket_Address::operator==
Description : Allow for normal == operation on a address item.. Will simplify the use in sorted containers..

setAnyIP
bool Socket_Address::set_any_IP(int port);

Function name : set_any_IP
Description : Set to any address and a specified port

setBroadcast
bool Socket_Address::set_broadcast(int port);

Function name : set_broadcast
Description : Set to the broadcast address and a specified port

setHost
bool Socket_Address::set_host(string const &hostname, int port);

Function name : set_host
Description : this function will take a port and string-based tcp address and initialize the address with the information
Return type : bool (address is undefined after an error)
Function name : Socket_Address::set_host
Description :

setPort
bool Socket_Address::set_port(int port);

Function name : set_port
Description : Set to a specified port