rework Network send() code to use NetworkTarget/Node/Group::send classes, add a NetworkMessage class for sending NetworkObject messages, and fix a bug whereby the server's client TCP sockets weren't nonblocking.... I wonder how this has worked before?\!
#ifndef ERROR_HH
#define ERROR_HH
#include "Logger.hh"
#include <stdexcept>
#include <string>
class Error : public std::exception {
private:
const char *message;
public:
Error (const std::string &message) : message(message.c_str()) { }
virtual const char* what() const throw() {
return message;
}
};
std::ostream& operator<< (std::ostream &s, Error &e);
#endif /* ERROR_HH */