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
LLString 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 46 of file llhost.h.


Constructor & Destructor Documentation

LLHost::LLHost (  )  [inline]

Definition at line 55 of file llhost.h.

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

Definition at line 60 of file llhost.h.

References mIP.

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

Definition at line 66 of file llhost.h.

References ip_string_to_u32(), and mIP.

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

Definition at line 72 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.

LLHost::~LLHost (  )  [inline]

Definition at line 82 of file llhost.h.


Member Function Documentation

U32 LLHost::getAddress (  )  const [inline]

Definition at line 97 of file llhost.h.

References mIP.

Referenced by LLMessageSystem::findCircuitCode(), LLMachine::getMachineIP(), LLMessageSystem::getSenderIP(), operator=(), LLViewerObjectList::removeFromLocalIDTable(), and LLPacketRing::sendPacket().

LLString LLHost::getHostName (  )  const

Definition at line 135 of file llhost.cpp.

References INVALID_HOST_IP_ADDRESS, llendl, llwarns, and mIP.

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(), and LLFloaterAbout::LLFloaterAbout().

std::string LLHost::getIPandPort (  )  const

Definition at line 92 of file llhost.cpp.

References getString(), and MAXADDRSTR.

Referenced by LLAssetRequest::getFullDetails().

std::string LLHost::getIPString (  )  const

Definition at line 100 of file llhost.cpp.

References mIP, and u32_to_ip_string().

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().

U32 LLHost::getPort (  )  const [inline]

Definition at line 98 of file llhost.h.

References mPort.

Referenced by LLSocket::blockingConnect(), LLMessageSystem::findCircuitCode(), LLMachine::getMachinePort(), LLMessageSystem::getSenderPort(), LLMachine::isValid(), operator=(), LLViewerObjectList::removeFromLocalIDTable(), and LLPacketRing::sendPacket().

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 LLViewerRegion::getInfoString(), getIPandPort(), LLNetMap::handleToolTip(), LLFloaterAbout::LLFloaterAbout(), and LLAgent::setRegion().

size_t LLHost::hash (  )  const [inline]

Definition at line 100 of file llhost.h.

References mIP, and mPort.

Referenced by LLHostHash::operator()().

void LLHost::invalidate (  )  [inline]

Definition at line 94 of file llhost.h.

References INVALID_HOST_IP_ADDRESS, INVALID_PORT, mIP, and mPort.

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

BOOL LLHost::isOk (  )  const [inline]

Definition at line 99 of file llhost.h.

References INVALID_HOST_IP_ADDRESS, INVALID_PORT, mIP, and mPort.

Referenced by LLMessageSystem::checkCircuitAlive(), LLMessageSystem::checkCircuitBlocked(), LLAssetStorage::getEstateAsset(), LLAssetStorage::getInvItemAsset(), LLAvatarGiveCard::handleEvent(), idle_startup(), LLTextureFetchWorker::LLTextureFetchWorker(), LLCacheName::processPending(), LLCacheName::Impl::processUUIDRequest(), LLMessageSystem::sendMessage(), LLViewerAssetStorage::storeAssetData(), and LLVOAvatar::updateMeshTextures().

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

Definition at line 219 of file llhost.cpp.

References getAddress(), getPort(), and set().

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

Definition at line 87 of file llhost.h.

References ip_string_to_u32(), mIP, and mPort.

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

Definition at line 86 of file llhost.h.

References mIP, and mPort.

Referenced by idle_startup(), and operator=().

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

Definition at line 89 of file llhost.h.

References mIP.

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

Definition at line 88 of file llhost.h.

References ip_string_to_u32(), and mIP.

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

BOOL LLHost::setHostByName ( const char *  hname  ) 

Definition at line 163 of file llhost.cpp.

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

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

Definition at line 90 of file llhost.h.

References mPort.

Referenced by LLMachine::setMachinePort().


Friends And Related Function Documentation

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

Definition at line 133 of file llhost.h.

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

Definition at line 138 of file llhost.h.

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

Definition at line 229 of file llhost.cpp.

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

Definition at line 128 of file llhost.h.


Member Data Documentation

LLHost LLHost::invalid [static]

Definition at line 52 of file llhost.h.

Referenced by LLFloaterGodTools::draw(), LLMessageSystem::findHost(), LLVOAvatar::getObjectHost(), LLAgent::getRegionHost(), LLViewerImage::init(), LLAssetStorage::LLAssetStorage(), LLPreviewLSL::loadAsset(), LLPreviewNotecard::loadAsset(), LLFloaterGodTools::sendRegionInfoRequest(), LLTextureFetch::sendRequestListToSimulators(), LLVOAvatar::setTETexture(), LLViewerObject::setTETexture(), and LLViewerImageList::shutdown().

U32 LLHost::mIP [protected]

Definition at line 49 of file llhost.h.

Referenced by getAddress(), getHostName(), getIPString(), getString(), hash(), invalidate(), isOk(), LLHost(), operator!=(), operator<(), operator<<(), operator==(), set(), setAddress(), and setHostByName().

U32 LLHost::mPort [protected]

Definition at line 48 of file llhost.h.

Referenced by getPort(), getString(), hash(), invalidate(), isOk(), LLHost(), operator!=(), operator<(), operator<<(), operator==(), set(), and setPort().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:23 2010 for Second Life Viewer by  doxygen 1.4.7