1 /* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SIMGRID_MC_REMOTE_EVENTLOOP_HPP
7 #define SIMGRID_MC_REMOTE_EVENTLOOP_HPP
9 #include "src/mc/remote/Channel.hpp"
11 #include <event2/event.h>
18 struct event_base* base_ = nullptr;
19 struct event* socket_event_ = nullptr;
20 struct event* signal_event_ = nullptr;
25 explicit CheckerSide(int sockfd) : channel_(sockfd) {}
28 Channel const& get_channel() const { return channel_; }
29 Channel& get_channel() { return channel_; }
31 void start(void (*handler)(int, short, void*));
37 } // namespace simgrid