-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructures.h
60 lines (50 loc) · 908 Bytes
/
structures.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#pragma once
#define ARRMAX 1000
#define TOPICSMAX 500
#define PASSMAX 10
struct idData {
long type;
int idx;
};
struct client {
int id;
int id_topic[ARRMAX];
int id_ignore[ARRMAX];
char name[ARRMAX];
int subscription[ARRMAX];
char password[ARRMAX];
};
struct loginuser {
long type;
int id_topic[TOPICSMAX];
char name[PASSMAX];
int subscription[TOPICSMAX];
char password[PASSMAX];
};
struct imessage {
long type;
int topicId;
struct loginuser user;
char content[ARRMAX];
};
struct omessage {
long type;
int topicId;
int senderId;
char senderName[PASSMAX];
char content[ARRMAX];
};
struct subscriptionData {
long type;
int topicId;
int subscription;
};
struct localUser {
char name[PASSMAX];
int id_topic[ARRMAX];
int id;
};
struct blockPacket {
long type;
char name[PASSMAX];
};