ACE_RMCast::AddressHasher Struct Reference

#include <Protocol.h>

List of all members.

Public Member Functions

unsigned long operator() (Address const &a) const


Detailed Description

Definition at line 48 of file Protocol.h.


Member Function Documentation

unsigned long ACE_RMCast::AddressHasher::operator() ( Address const &  a  )  const [inline]

Definition at line 51 of file Protocol.h.

References ACE_INET_Addr::get_ip_address(), and ACE_INET_Addr::get_port_number().

00052     {
00053       unsigned long port (a.get_port_number ());
00054       unsigned long ip (a.get_ip_address ());
00055 
00056       port <<= sizeof (unsigned long) - sizeof (unsigned short);
00057 
00058       return port ^ ip;
00059     }


The documentation for this struct was generated from the following file:
Generated on Tue Feb 2 17:36:29 2010 for ACE_RMCast by  doxygen 1.4.7