Skip to content

Commit c7d06c1

Browse files
committed
code
1 parent 6917daf commit c7d06c1

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
File renamed without changes.

network/initNet.go

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package impl
2+
3+
// LollipopGo 支持的网络类型
4+
const (
5+
WebSocket = "websocket"
6+
RPC = "rpc"
7+
TCP = "tcp"
8+
UDP = "udp"
9+
KCP = "kcp"
10+
)
11+
12+
func InitNet( netty string ) interface{} {
13+
switch netty {
14+
case WebSocket:
15+
return IMsg
16+
case RPC:
17+
case KCP:
18+
case TCP:
19+
case UDP:
20+
default:
21+
}
22+
return nil
23+
}
File renamed without changes.

0 commit comments

Comments
 (0)