From 88005fe6dad27250b32f190cf008644eb2aa9fd5 Mon Sep 17 00:00:00 2001 From: Linwei <skywind3000@gmail.com> Date: Wed, 23 Mar 2016 18:10:36 +0800 Subject: [PATCH] Updated Cooperate With Tcp Server (markdown) --- Cooperate-With-Tcp-Server.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cooperate-With-Tcp-Server.md b/Cooperate-With-Tcp-Server.md index 562e212..8741d52 100644 --- a/Cooperate-With-Tcp-Server.md +++ b/Cooperate-With-Tcp-Server.md @@ -15,6 +15,6 @@ `connection.send(channel, data, size)` -的接口,channel=0时,使用原有tcp发送,channel=1时使用kcp发送,channel=2时使用裸的udp发送。三个channel同时工作,适配不同情况。 +的接口,channel=0时,使用原有tcp发送,channel=1时使用kcp发送,channel=2时使用裸的udp发送。三个channel同时工作,适配不同情况。服务端接口也类似。 中国的网络情况比较特殊,会存在有些网络 UDP连接不上的情况,因此都是先连接 TCP,然后试图 UDP,UDP不通的情况下,退回 TCP也能正常游戏,一旦 TCP断开,则认为 UDP也断开了。 \ No newline at end of file