server search for client completed with host:port
This commit is contained in:
@@ -99,3 +99,9 @@ void replace_all_substr(std::string &str, const std::string &ori_substr, const s
|
||||
pos += new_substr.size();
|
||||
}
|
||||
}
|
||||
|
||||
bool operator==(const listen_socket& lhs, int fd)
|
||||
{ return lhs.fd == fd; }
|
||||
|
||||
bool operator==(int fd, const listen_socket& rhs)
|
||||
{ return fd == rhs.fd; }
|
||||
|
||||
Reference in New Issue
Block a user