renaming project, halo -> ray (#95)

This commit is contained in:
Robert Nishihara
2016-06-10 14:12:15 -07:00
committed by Philipp Moritz
parent 44ae1788ee
commit 4cc024ae36
41 changed files with 453 additions and 481 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
#ifndef HALO_UTILS_H
#define HALO_UTILS_H
#ifndef RAY_UTILS_H
#define RAY_UTILS_H
inline std::string::iterator split_ip_address(std::string& ip_address) {
if (ip_address[0] == '[') { // IPv6
@@ -10,11 +10,11 @@ inline std::string::iterator split_ip_address(std::string& ip_address) {
if(split_end != ip_address.end() && *split_end == ':') {
return split_end;
}
HALO_LOG(HALO_FATAL, "ip address should contain a port number");
RAY_LOG(RAY_FATAL, "ip address should contain a port number");
} else { // IPv4
auto split_point = std::find(ip_address.rbegin(), ip_address.rend(), ':').base();
if (split_point == ip_address.begin()) {
HALO_LOG(HALO_FATAL, "ip address should contain a port number");
RAY_LOG(RAY_FATAL, "ip address should contain a port number");
} else {
return split_point;
}