Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Address Class Reference

#include <Address.h>

Inheritance diagram for Address:

Object List of all members.

Public Methods

 Address ()
 Address (uint host, int port)
 Address (const char *host, int port)
 Address (const Address &other)
 Address (const char *ip_with_port)
 ~Address ()
void setHost (uint host)
int setHost (const char *host)
void setPort (int port)
uint getHost () const
uint getHost (char *host) const
int getPort () const
void setIP (const char *ip_with_port)
void getIP (char *ip_with_port) const
int equals (Address &other)
int equals (uint host, uint port)
int operator== (Address &other)
int operator!= (Address &other)
Address & operator= (const Address &other)
virtual int compare (Object *)
virtual ObjectCopy ()

Static Public Methods

Address * getAddress (int port=0)
void init_thishost ()

Public Attributes

uint host
uint port

Static Public Attributes

uint thishost

Constructor & Destructor Documentation

Address::Address  
 

Definition at line 25 of file Address.cpp.

References setHost(), setPort(), and uint.

Referenced by getAddress().

Address::Address uint    host,
int    port
 

Definition at line 39 of file Address.cpp.

References host, port, setHost(), setPort(), and uint.

Address::Address const char *    host,
int    port
 

Definition at line 32 of file Address.cpp.

References host, port, setHost(), and setPort().

Address::Address const Address &    other
 

Definition at line 46 of file Address.cpp.

References host, and port.

Address::Address const char *    ip_with_port
 

Definition at line 52 of file Address.cpp.

References setIP().

Address::~Address  
 

Definition at line 57 of file Address.cpp.


Member Function Documentation

virtual int Object::compare Object   [inline, virtual, inherited]
 

To ensure a consistent comparison interface and to allow comparison of all kinds of different objects, we will define a comparison functions.

Definition at line 31 of file Object.h.

virtual Object* Object::Copy   [inline, virtual, inherited]
 

To allow a deep copy of data structures we will define a standard interface... This member will return a copy of itself, freshly allocated and deep copied.

Reimplemented in List.

Definition at line 37 of file Object.h.

Referenced by List::Copy(), and List::operator=().

int Address::equals uint    host,
uint    port
 

Definition at line 215 of file Address.cpp.

References host, port, and uint.

int Address::equals Address &    other
 

Definition at line 221 of file Address.cpp.

References host, and port.

Referenced by PostOffice::_receive(), operator!=(), operator==(), PostOffice::put_back(), and PostOffice::stopWait().

Address * Address::getAddress int    port = 0 [static]
 

Definition at line 63 of file Address.cpp.

References Address(), and port.

Referenced by Client::Client(), and Master::consoleInThread().

uint Address::getHost char *    host const
 

Definition at line 153 of file Address.cpp.

References host, uchar, and uint.

uint Address::getHost  
 

Definition at line 147 of file Address.cpp.

References uint.

Referenced by getIP(), UDPConfirm::sendConfirm(), UDPConfirm::sendItem(), UDPConfirm::setRemote(), and Slave::startSlave().

void Address::getIP char *    ip_with_port const
 

Definition at line 206 of file Address.cpp.

References getHost(), getPort(), and host.

Referenced by Client::_taskCreate(), Master::checkingThread(), UDPConfirm::checkList(), Client::clientOn(), Master::dispatchMsg(), Master::log_slave_msg(), Master::log_slave_state_change(), Master::msgJobCtrl(), Master::msgSlaveStatus(), Master::msgSlaveStatus_Ready(), Master::msgTaskInit(), o2x(), Master::print_status(), UDPConfirm::purgeIn(), UDPConfirm::sendIt(), SlaveEntry::setInfo(), Slave::Slave(), Master::slaveMatchSlave(), Master::slaveMatchTasks(), Master::srchSlaveAddr(), Slave::startTimer(), Master::upgradeSlave(), and SlaveEntry::~SlaveEntry().

int Address::getPort  
 

Definition at line 200 of file Address.cpp.

References port.

Referenced by Master::checkingThread(), getIP(), UDPConfirm::sendConfirm(), UDPConfirm::sendItem(), UDPConfirm::setRemote(), and Master::sndMessageToClient().

void Address::init_thishost   [static]
 

Definition at line 71 of file Address.cpp.

References DBUG_PRINT, thishost, and uint.

Referenced by PostOffice::init_sockets().

int Address::operator!= Address &    other
 

Definition at line 233 of file Address.cpp.

References equals().

Address & Address::operator= const Address &    other
 

Definition at line 239 of file Address.cpp.

References host, and port.

int Address::operator== Address &    other
 

Definition at line 227 of file Address.cpp.

References equals().

int Address::setHost const char *    host
 

Definition at line 92 of file Address.cpp.

References DBUG_PRINT, host, setHost(), and uint.

void Address::setHost uint    host
 

Definition at line 120 of file Address.cpp.

References host, thishost, and uint.

Referenced by Address(), setHost(), setIP(), Slave::Slave(), Slave::startTimer(), and UDPConfirm::waitData().

void Address::setIP const char *    ip_with_port
 

Definition at line 182 of file Address.cpp.

References host, port, setHost(), setPort(), and uint.

Referenced by Address(), and x2o().

void Address::setPort int    port
 

Definition at line 141 of file Address.cpp.

References port.

Referenced by Address(), Master::msgClientStatus_On(), setIP(), Slave::Slave(), and UDPConfirm::waitData().


Member Data Documentation

uint Address::host
 

Definition at line 21 of file Address.h.

Referenced by Address(), equals(), getHost(), getIP(), operator=(), setHost(), setIP(), and Slave::startTimer().

uint Address::port
 

Definition at line 22 of file Address.h.

Referenced by Address(), equals(), getAddress(), getPort(), operator=(), setIP(), and setPort().

uint Address::thishost [static]
 

Definition at line 23 of file Address.cpp.

Referenced by init_thishost(), and setHost().


The documentation for this class was generated from the following files:
Generated on Mon Nov 25 12:46:37 2002 for qadpz by doxygen1.2.18