-
Notifications
You must be signed in to change notification settings - Fork 0
/
서버메시지타입.txt
135 lines (106 loc) · 2.66 KB
/
서버메시지타입.txt
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
서버 메시지 타입
메시지보내기 MSG_TALK
int type: 0
int sender: sender_index
int etc: 시간정보
int room_idx 방번호
int msg_size strlen(메시지)+4
char* content_send_buffer 메시지내용+메시지인덱스(4byte)
방만들기 결과 MSG_ROOMCREATE
int type: 1
int sender: NULL
int etc: 참여자 수
int room_idx 배정된 방 번호
int msg_size 참여자수*36
char* content_send_buffer 참여자 목록(인덱스4byte+이름32byte)
회원가입 확인 MSG_USERREGISTER
int type: 2
int sender: NULL
int etc: error_code
int room_idx NULL
int msg_size 0
char* content_send_buffer NULL
로그인확인 MSG_LOGIN
int type: 3
int sender: sender_index
int etc: error_code
int room_idx NULL
int msg_size 0
char* content_send_buffer NULL
친구정보(이름) MSG_FRIENDINFO
int type: 4
int sender: NULL
int etc: 친구수
int room_idx NULL
int msg_size 36*친구수
char* content_send_buffer 친구idx+친구 이름
친구추가 MSG_FRIENDADD
int type: 5
int sender: NULL
int etc: error_code
int room_idx NULL
int msg_size 0
char* content_send_buffer NULL
대화히스토리요청 MSG_HISTORY
int type: 6
int sender: msg_sender_idx
int etc: timestamp
int room_idx room_idx
int msg_size strlen(메시지)+4
char* content_send_buffer 메시지내용+메시지인덱스(4byte)
방 퇴장 요청 MSG_ROOMEXIT
int type 7
int sender: NULL
int etc: errorcode
int room_idx: room_idx
int msg_size 0
char* content_send_buffer NULL
방 안에서 유저 추가 MSG_ROOMUSERADD
int type 8
int sender: NULL
int etc: 참여자 수
int room_idx: room_idx
int msg_size 참여자수*36
char* content_send_buffer 참여자 목록(인덱스4byte+이름32byte)
아이디 찾기 MSG_IDSEARCH
int type 9
int sender NULL
int etc errorcode
int room_idx NULL
int msg_size 32
char* content_send_buffer 찾을사람id
비밀번호 찾기 MSG_PWSEARCH
int type 10
int sender NULL
int etc errorcode
int room_idx NULL
int msg_size NULL
char* content_send_buffer NULL
아이디 중복확인 MSG_IDDUPLICATE
int type 11
int sender NULL
int etc errorcode
int room_idx NULL
int msg_size NULL
char* content_send_buffer NULL
비밀번호 재설정 MSG_PWRESET
int type 12
int sender NULL
int etc errorcode
int room_idx NULL
int msg_size NULL
char* content_send_buffer NULL
인증키 요청 MSG_AUTHREQUEST
int type 13
int sender NULL
int etc errorcode
int room_idx NULL
int msg_size NULL
char* content_send_buffer NULL (email 보내줄것)
인증키 확인 MSG_AUTHCHECK
int type 14
int sender NULL
int etc errorcode
int room_idx NULL
int msg_size NULL
char* content_send_buffer NULL