Skip to content
Snippets Groups Projects
Commit 75dc1d63 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add a NotImplementedError exception when using sockets with MPI

parent 26ddd753
No related branches found
No related tags found
1 merge request!126Begin socket handling: core functionalities are available
#include <utils/Exceptions.hpp>
#include <utils/Socket.hpp>
#include <utils/Messenger.hpp>
#include <arpa/inet.h>
#include <cstring>
#include <iostream>
......@@ -62,7 +64,12 @@ class Socket::Internals
Internals(const Internals&) = delete;
Internals(Internals&&) = delete;
Internals(bool is_server_socket = false) : m_is_server_socket{is_server_socket} {}
Internals(bool is_server_socket = false) : m_is_server_socket{is_server_socket}
{
if (parallel::size() > 1) {
throw NotImplementedError("Sockets are not managed in parallel");
}
}
~Internals()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment