Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

BGInetAddress Class Reference

This class represents an Internet Protocol (IP) address. More...

#include <bgsocket.h>

Class diagram for BGInetAddress:

BGObject

List of all members.


Public Members

virtual BGString toString ( )
Generates string representation of this object. More...

virtual unsigned long hash ( )
Generates a 'unique' hashvalue of this object. More...

virtual bool equals ( BGObject &obj )
Returns true, if specified object is equal to own instance. More...

virtual BGString className ( )
Return the class name for this class. More...


Detailed Description

This class represents an Internet Protocol (IP) address.

Applications should use the methods getLocalHost, getByName, or getAllByName to create a new InetAddress instance.

Author(s):
Michael Griffel
Version:
1.0

Member Function Documentation

virtual BGString BGInetAddress::toString () [virtual]

Generates string representation of this object.

This is useful for logging, etc. - This method will replace dump !

Returns:
Stringrepresentation of this object

Reimplemented from BGObject.

virtual unsigned long BGInetAddress::hash () [virtual]

Generates a 'unique' hashvalue of this object.

Note: The returned pointer will point to class buffer. Therefore do not delete it, dupe it if you need it outside of instance lifecycle.

Returns:
Hash of this object

Reimplemented from BGObject.

virtual bool BGInetAddress::equals (BGObject & obj) [virtual]

Returns true, if specified object is equal to own instance.

First we compare class identifier. If both object has same class type, we dispatch to compare method, which should always be able to compare instances with same type.

Parameters:
obj   Object reference to compare with us
Returns:
True, if object is equal to own instance

Reimplemented from BGObject.

virtual BGString BGInetAddress::className () [virtual]

Return the class name for this class.

Subclasses should overwrite this method to return their own name.

Reimplemented from BGObject.


The documentation for this class was generated from the following file:
Generated at Fri Feb 18 10:57:06 2000 for bgclass by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999