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);
34 void resume(simgrid::mc::Process& process);
37 void wait_client(simgrid::mc::Process& process);
38 void simcall_handle(simgrid::mc::Process& process, unsigned long pid, int value);
40 bool handle_message(char* buffer, ssize_t size);
41 void handle_signals();
42 void handle_waitpid();
43 void on_signal(const struct signalfd_siginfo* info);
46 extern Server* server;