重构服务器

This commit is contained in:
kercylan98
2023-04-19 17:13:34 +08:00
parent 45a9d9b4e3
commit 481ccc182a
54 changed files with 946 additions and 1836 deletions
+15
View File
@@ -0,0 +1,15 @@
package server
type Network string
const (
NetworkTCP Network = "tcp"
NetworkTCP4 Network = "tcp4"
NetworkTCP6 Network = "tcp6"
NetworkUdp Network = "udp"
NetworkUdp4 Network = "udp4"
NetworkUdp6 Network = "udp6"
NetworkUnix Network = "unix"
NetworkHttp Network = "http"
NetworkWebsocket Network = "websocket"
)