1 /* Copyright (c) 2015. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #ifndef SIMGRID_MC_SERVER_HPP
8 #define SIMGRID_MC_SERVER_HPP
12 #include <sys/signalfd.h>
13 #include <sys/types.h>
18 #include "src/mc/Process.hpp"
30 Server(pid_t pid, int socket);
33 void resume(simgrid::mc::Process& process);
36 void wait_client(simgrid::mc::Process& process);
37 void simcall_handle(simgrid::mc::Process& process, unsigned long pid, int value);
39 bool handle_message(char* buffer, ssize_t size);
40 void handle_signals();
41 void handle_waitpid();
42 void on_signal(const struct signalfd_siginfo* info);
45 extern Server* server;