-
Notifications
You must be signed in to change notification settings - Fork 0
/
ethbc.h
41 lines (35 loc) · 1 KB
/
ethbc.h
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
36
37
38
39
40
41
#ifndef __BDEXPERTRX_H__
#define __BDEXPERTRX_H__ TRUE
#define ETPRIO_MIN 0
#define ETPRIO_SURE 255
#define MAXNTYPES 90
struct ETMsgHeader
{
unsigned short size;
unsigned short type;
unsigned short kernelnum;
long kerneldate;
unsigned short ID;
unsigned char priority;
unsigned char nrec;
};
struct ETMessage
{
struct ETMsgHeader* Header;
char* Data;
char* Rec;
char* Msg;
};
int ETCreateMsg(struct ETMessage *msg, int size, int type);
void ETFreeMsg(struct ETMessage *msg);
void InitBroadcast (const char *address, int port, int knum);
void CloseBroadcast();
void AddRequest(short);
void RemoveRequest(short);
void ReceiveMail();
void TransmitMail();
void ProcessAckList();
void ShareMsg(struct ETMessage *, int);
int MsgToBeRead();
struct ETMessage* GetNextMsg();
#endif