forked from balloonwj/flamingo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. 服务器支持 Windows 操作系统编译、调试和部署,可以直接使用 Visual Studio 2019 打开 FlamingoSe…
…rver.sln 文件即可一键编译到底; 2. 安卓版本实现了除发送图片以外的所有功能(发送图片下一版更新); 3. 网络库优化。
- Loading branch information
Showing
1,004 changed files
with
42,883 additions
and
87,454 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
聊天服务器协议定义于: | ||
flamingoserver/chatserversrc/Msg.h | ||
|
||
文件传输协议定义于: | ||
flamingoserver/fileserversrc/FileMsg.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 添加好友 | ||
|
||
## 流程 | ||
|
||
### 搜索好友 | ||
|
||
```java | ||
//请求,使用用户名搜索 | ||
cmd = 1004, seq = 0, {"type": 1, "username": "zhangyl"} | ||
|
||
//应答 | ||
cmd = 1004, seq = 0, { "code": 0, "msg": "ok", "userinfo": [{"userid": 2, "username": "qqq", "nickname": "qqq123", "facetype":0}] } | ||
``` | ||
|
||
facetype 为用户头像编号,在本地取。 | ||
|
||
### 添加好友 | ||
|
||
```java | ||
//A向B发出加好友申请 | ||
cmd = 1005, seq = 0, {"userid": 9, "type": 1} | ||
//B收到A的好友申请,存数据库,进入添加好友页面时显示 | ||
cmd = 1005, seq = 0, {"userid": 9, "type": 2, "username": "xxx"} | ||
//B在添加好友页面点击同意,向服务器发数据 | ||
cmd = 1005, seq = 0, {"userid": 9, "type": 3, "username": "xxx", "accept": 1} | ||
// A收到B的同意信息,存入数据库。 和 msg.h 有差异 | ||
cmd = 1005, seq = 0, {"userid": 9, "type": 3, "username": "xxx", "accept": 1} | ||
``` | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in D:\android\sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
-dontwarn com.tencent.bugly.** | ||
-keep public class com.tencent.bugly.**{*;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.