Moved ip_operators.*pp to common/utilities
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "udp_network_utility.hpp"
|
||||
|
||||
//common utilities
|
||||
#include "ip_operators.hpp"
|
||||
#include "serial_packet.hpp"
|
||||
#include "singleton.hpp"
|
||||
|
||||
@@ -47,10 +48,6 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
//global utility functions
|
||||
bool operator==(IPaddress lhs, IPaddress rhs);
|
||||
bool operator!=(IPaddress lhs, IPaddress rhs);
|
||||
|
||||
//The main application class
|
||||
class ServerApplication: public Singleton<ServerApplication> {
|
||||
public:
|
||||
|
||||
@@ -25,18 +25,6 @@
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
//-------------------------
|
||||
//these should've come standard
|
||||
//-------------------------
|
||||
|
||||
bool operator==(IPaddress lhs, IPaddress rhs) {
|
||||
return lhs.host == rhs.host && lhs.port == rhs.port;
|
||||
}
|
||||
|
||||
bool operator!=(IPaddress lhs, IPaddress rhs) {
|
||||
return !(lhs == rhs);
|
||||
}
|
||||
|
||||
//-------------------------
|
||||
//server commands
|
||||
//-------------------------
|
||||
|
||||
Reference in New Issue
Block a user