-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconst.cpp
46 lines (41 loc) · 1.35 KB
/
const.cpp
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
#include "const.h"
namespace CONST
{
/* message types */
char MSG_TYPE_REGIST[] = "regist";
char MSG_TYPE_LOGIN[] = "login";
char MSG_TYPE_LOGOUT[] = "logout";
char MSG_TYPE_MSG[] = "msg";
char MSG_TYPE_RET_SUCC[] = "succ";
char MSG_TYPE_RET_FAIL[] = "fail";
char MSG_TYPE_NOTI_LOGIN[] = "noti_login";
char MSG_TYPE_NOTI_LOGOUT[] = "noti_logout";
char MSG_TYPE_FB[] = "fb";
char MSG_TYPE_FI[] = "fi";
char MSG_TYPE_FE[] = "fe";
char MSG_TYPE_FOK[] = "fok";
char MSG_TYPE_FNO[] = "fno";
char MSG_TYPE_FRIENDLIST[] = "friendlist";
char MSG_TYPE_ADDFRIEND[] = "add";
char MSG_TYPE_ADDOK[] = "addok";
char MSG_TYPE_ADDNO[] = "addno";
/* user request types */
char USER_REQUEST_TYPE_MSG[] = "to";
char USER_REQUEST_TYPE_FTO[] = "fto";
char USER_REQUEST_TYPE_FOK[] = "fok";
char USER_REQUEST_TYPE_FNO[] = "fno";
char USER_REQUEST_TYPE_FRIENDLIST[] = "list";
char USER_REQUEST_TYPE_ADDFRIEND[] = "add";
char USER_REQUEST_TYPE_ADDOK[] = "addok";
char USER_REQUEST_TYPE_ADDNO[] = "addno";
/* file transfer type */
char FILE_TYPE_DIR[] = "dir";
char FILE_TYPE_FB[] = "file_b";
char FILE_TYPE_FI[] = "file_i";
char FILE_TYPE_FE[] = "file_e";
/* receiving dir for file transfering */
char RECEIVE_DIR[] = "./data/";
/* registed user file */
char REGISTED_FILE[] = "registed";
char FRIENDSHIP_FILE[] = "friendship";
};