-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbeb.h
More file actions
35 lines (26 loc) · 728 Bytes
/
beb.h
File metadata and controls
35 lines (26 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* beb.h
*
* Created on: 15 Oct 2018
* Author: aguirguis
*/
#include "perfect_link.h"
#include <thread>
#include <vector>
#ifndef BEB_H_
#define BEB_H_
class beb: public deliver_callback { // @suppress("Class has a virtual method and non-virtual destructor")
public:
perfect_link* pl;
std::thread recv;
std::thread recv_ack;
std::thread resend;
std::thread send;
deliver_callback* bclass;
void init(deliver_callback* bclass);
//If some callback is passed, it will be called on receive..otherwise, beb callback will be called
void bebBroadcast(Message message);
void beb_deliver(Message message);
void deliver(Message message);
};
#endif /* BEB_H_ */