1 /* Copyright (c) 2007-2021. 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) {}
29 CheckerSide(CheckerSide const&) = delete;
30 CheckerSide& operator=(CheckerSide const&) = delete;
31 CheckerSide& operator=(CheckerSide&&) = delete;
33 Channel const& get_channel() const { return channel_; }
34 Channel& get_channel() { return channel_; }
36 void start(void (*handler)(int, short, void*));
42 } // namespace simgrid