| 119 | } |
| 120 | |
| 121 | void hash_endpoint(::CORBA::Long& hash, const char* const endpoint, const size_t len) |
| 122 | { |
| 123 | std::string toprint(endpoint, len); |
| 124 | if (len > 0) |
| 125 | { |
| 126 | for (size_t i = 0; i < len; i++) |
| 127 | { |
| 128 | hash = 31 * hash + endpoint[i]; |
| 129 | } |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | #if defined (ACE_USES_WCHAR) |
| 134 | void hash_endpoint(::CORBA::Long& hash, const wchar_t* const endpoint, const size_t len) |