#include <llhost.h>
Collaboration diagram for LLHost:
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) |
LLHost & | operator= (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) |
Definition at line 46 of file llhost.h.
LLHost::LLHost | ( | const char * | ipv4_addr, | |
U32 | port | |||
) | [inline] |
LLHost::LLHost | ( | const U64 | ip_port | ) | [inline, explicit] |
LLHost::LLHost | ( | const std::string & | ip_and_port | ) | [explicit] |
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.
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 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().
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] |
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().
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.
Definition at line 90 of file llhost.h.
References mPort.
Referenced by LLMachine::setMachinePort().
std::ostream& operator<< | ( | std::ostream & | os, | |
const LLHost & | hh | |||
) | [friend] |
Definition at line 229 of file llhost.cpp.
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().