}
int comm::Host::SortBy::value(const Server* server)
-throw() {
+{
return server->getRemotePort();
}
const comm::Server* comm::Host::find_server(const int remotePort) const
-throw() {
+{
return a_servers.find(remotePort);
}
comm::Server* comm::Host::find_server(const int remotePort)
-throw() {
+{
return a_servers.find(remotePort);
}
comm::Server* comm::Host::createServer(const string& name, const int remotePort, const bool autoRecovery, comm::TransportFactory* transportFactory, const bool ignoreIncomingMessages, const bool doConnect)
-throw(RuntimeException) {
+noexcept(false) {
return add(createServer(ServerAllocator(name, *this, remotePort, autoRecovery, transportFactory, ignoreIncomingMessages)), remotePort, doConnect);
}
// ServerSocket remoto.
//-------------------------------------------------------------------------------
comm::Server* comm::Host::createServer(const ServerAllocator& serverAllocator)
-throw(RuntimeException) {
+noexcept(false) {
Server* result = serverAllocator.apply();
result->setIgnoreIncomingMessages(serverAllocator.getIgnoreIncomingMessages());
return result;
}
void comm::Host::assign(const Device* device)
-throw(RuntimeException) {
+noexcept(false) {
if(contains(device) == false)
a_devices.push_back(device);
}
string comm::Host::asString() const
-throw() {
+{
string result;
result = "comm::Host { Name: ";
result += getName();
xml::Node* comm::Host::asXML(xml::Node* parent) const
-throw(RuntimeException) {
+noexcept(false) {
xml::Node* host = parent->createChild("comm.Host");
xml::Node* node;
host->createAttribute("Name", getName());
comm::Server* comm::Host::add(comm::Server* result, const int remotePort, const bool doConnect)
-throw() {
+{
result->a_sequence = a_servers.size();
a_servers.add(result);