a_httpResponse.createHeader (http::Header::Type::Server)->setValue (anna_use_sccs_tag (http));
}
- void setNotSend (const bool notSend) throw () { a_notSend = notSend; }
+ void setNotSend (const bool notSend) { a_notSend = notSend; }
private:
http::Response a_httpResponse;
bool a_notSend;
- void evRequest (ClientSocket&, const http::Request& request) throw (RuntimeException);
- void evResponse (ClientSocket&, const http::Response&) throw (RuntimeException) {;}
+ void evRequest (ClientSocket&, const http::Request& request) noexcept(false);
+ void evResponse (ClientSocket&, const http::Response&) noexcept(false) {;}
};
class MyCommunicator : public comm::Communicator {
public:
MyCommunicator () {;}
- void setNotSend (const bool notSend) throw () { a_httpHandler.setNotSend (notSend); }
+ void setNotSend (const bool notSend) { a_httpHandler.setNotSend (notSend); }
private:
MyHandler a_httpHandler;
void eventReceiveMessage (comm::ClientSocket &, const Message& message)
- throw (RuntimeException);
+ noexcept(false);
};
class HTTPArithmeticServer : public comm::Application {
MyCommunicator a_communicator;
comm::ServerSocket* a_serverSocket;
- void initialize () throw (RuntimeException);
- void run () throw (RuntimeException);
+ void initialize () noexcept(false);
+ void run () noexcept(false);
};
using namespace std;
}
void HTTPArithmeticServer::initialize ()
- throw (RuntimeException)
+ noexcept(false)
{
CommandLine& cl (CommandLine::instantiate ());
}
void HTTPArithmeticServer::run ()
- throw (RuntimeException)
+ noexcept(false)
{
a_communicator.attach (a_serverSocket);
a_communicator.accept ();
}
void MyCommunicator::eventReceiveMessage (ClientSocket& clientSocket, const Message& message)
- throw (RuntimeException)
+ noexcept(false)
{
LOGMETHOD (TraceMethod tm ("MyCommunicator", "eventReceiveMessage", ANNA_FILE_LOCATION));
static int messageCounter = 0;
static int successCounter = 0;
- int value;
-
CongestionController& congestionController = CongestionController::instantiate ();
messageCounter ++;
}
void MyHandler::evRequest (ClientSocket& clientSocket, const http::Request& request)
- throw (RuntimeException)
+ noexcept(false)
{
const DataBlock& body = request.getBody ();