LLHost Class Reference

#include <llhost.h>

Collaboration diagram for LLHost:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLHost ()
 LLHost (U32 ipv4_addr, U32 port)
 LLHost (const char *ipv4_addr, U32 port)
 LLHost (const U64 ip_port)
 LLHost (const std::string &ip_and_port)
 ~LLHost ()
void set (U32 ip, U32 port)
void set (const char *ipstr, U32 port)
void setAddress (const char *ipstr)
void setAddress (U32 ip)
void setPort (U32 port)
BOOL setHostByName (const char *hname)
LLHostoperator= (const LLHost &rhs)
void invalidate ()
U32 getAddress () const
U32 getPort () const
BOOL isOk () const
size_t hash () const
void getString (char *buffer, S32 length) const
void getIPString (char *buffer, S32 length) const
std::string getIPString () const
void getHostName (char *buf, S32 len) const
std::string getHostName () const
std::string getIPandPort () const

Static Public Attributes

static LLHost invalid

Protected Attributes

U32 mPort
U32 mIP

Friends

std::ostream & operator<< (std::ostream &os, const LLHost &hh)
bool operator== (const LLHost &lhs, const LLHost &rhs)
bool operator!= (const LLHost &lhs, const LLHost &rhs)
bool operator< (const LLHost &lhs, const LLHost &rhs)


Detailed Description

Definition at line 44 of file llhost.h.


Constructor & Destructor Documentation

LLHost::LLHost (  )  [inline]

Definition at line 53 of file llhost.h.

LLHost::LLHost ( U32  ipv4_addr,
U32  port 
) [inline]

Definition at line 58 of file llhost.h.

References mIP.

LLHost::LLHost ( const char *  ipv4_addr,
U32  port 
) [inline]

Definition at line 64 of file llhost.h.

References ip_string_to_u32(), and mIP.

Here is the call graph for this function:

LLHost::LLHost ( const U64  ip_port  )  [inline, explicit]

Definition at line 70 of file llhost.h.

References mIP, and mPort.

LLHost::LLHost ( const std::string &  ip_and_port  )  [explicit]

Definition at line 51 of file llhost.cpp.

References ip_string_to_u32(), mIP, and mPort.

Here is the call graph for this function:

LLHost::~LLHost (  )  [inline]

Definition at line 80 of file llhost.h.


Member Function Documentation

void LLHost::set ( U32  ip,
U32  port 
) [inline]

Definition at line 84 of file llhost.h.

References mIP, and mPort.

Referenced by idle_startup().

Here is the caller graph for this function:

void LLHost::set ( const char *  ipstr,
U32  port 
) [inline]

Definition at line 85 of file llhost.h.

References ip_string_to_u32(), mIP, and mPort.

Here is the call graph for this function:

void LLHost::setAddress ( const char *  ipstr  )  [inline]

Definition at line 86 of file llhost.h.

References ip_string_to_u32(), and mIP.

Referenced by setHostByName(), and LLMachine::setMachineIP().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLHost::setAddress ( U32  ip  )  [inline]

Definition at line 87 of file llhost.h.

References mIP.

void LLHost::setPort ( U32  port  )  [inline]

Definition at line 88 of file llhost.h.

References mPort.

Referenced by LLMachine::setMachinePort().

Here is the caller graph for this function:

BOOL LLHost::setHostByName ( const char *  hname  ) 

Definition at line 161 of file llhost.cpp.

References FALSE, llendl, llerrs, llwarns, MAX_STRING, mIP, S32, setAddress(), and TRUE.

Here is the call graph for this function:

LLHost & LLHost::operator= ( const LLHost rhs  ) 

Definition at line 217 of file llhost.cpp.

References getAddress(), and getPort().

Here is the call graph for this function:

void LLHost::invalidate (  )  [inline]

Definition at line 92 of file llhost.h.

References INVALID_HOST_IP_ADDRESS, INVALID_PORT, mIP, and mPort.

Referenced by LLReliablePacketParams::clear(), LLMessageSystem::clearReceiveState(), and LLFloaterAuction::initialize().

Here is the caller graph for this function:

U32 LLHost::getAddress (  )  const [inline]

U32 LLHost::getPort (  )  const [inline]

BOOL LLHost::isOk (  )  const [inline]

size_t LLHost::hash (  )  const [inline]

Definition at line 98 of file llhost.h.

References mIP, and mPort.

Referenced by LLHostHash::operator()().

Here is the caller graph for this function:

void LLHost::getString ( char *  buffer,
S32  length 
) const

Definition at line 69 of file llhost.cpp.

References llendl, llerrs, MAXADDRSTR, mIP, mPort, and u32_to_ip_string().

Referenced by getIPandPort(), LLNetMap::handleToolTip(), LLFloaterAbout::LLFloaterAbout(), and LLAgent::setRegion().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLHost::getIPString ( char *  buffer,
S32  length 
) const

Definition at line 80 of file llhost.cpp.

References llendl, llerrs, MAXADDRSTR, mIP, and u32_to_ip_string().

Referenced by LLSocket::blockingConnect().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string LLHost::getIPString (  )  const

Definition at line 100 of file llhost.cpp.

References mIP, and u32_to_ip_string().

Here is the call graph for this function:

void LLHost::getHostName ( char *  buf,
S32  len 
) const

Definition at line 106 of file llhost.cpp.

References INVALID_HOST_IP_ADDRESS, llendl, llwarns, and mIP.

Referenced by LLNetMap::handleToolTip(), LLAppViewer::handleViewerCrash(), and LLFloaterAbout::LLFloaterAbout().

Here is the caller graph for this function:

std::string LLHost::getHostName (  )  const

Definition at line 135 of file llhost.cpp.

References INVALID_HOST_IP_ADDRESS, ll_safe_string(), llendl, llwarns, and mIP.

Here is the call graph for this function:

std::string LLHost::getIPandPort (  )  const

Definition at line 92 of file llhost.cpp.

References getString(), and MAXADDRSTR.

Referenced by LLAssetRequest::getFullDetails(), LLViewerRegion::getInfo(), and LLCircuitData::getInfo().

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const LLHost hh 
) [friend]

Definition at line 227 of file llhost.cpp.

bool operator== ( const LLHost lhs,
const LLHost rhs 
) [friend]

Definition at line 126 of file llhost.h.

bool operator!= ( const LLHost lhs,
const LLHost rhs 
) [friend]

Definition at line 131 of file llhost.h.

bool operator< ( const LLHost lhs,
const LLHost rhs 
) [friend]

Definition at line 136 of file llhost.h.


Member Data Documentation

U32 LLHost::mPort [protected]

U32 LLHost::mIP [protected]


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

Generated on Fri May 16 08:48:53 2008 for SecondLife by  doxygen 1.5.5