mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-06 20:11:27 +08:00
【feat】udp协议
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"pandax/iothub/server/emqxserver"
|
||||
"pandax/iothub/server/httpserver"
|
||||
"pandax/iothub/server/tcpserver"
|
||||
updserver "pandax/iothub/server/udpserver"
|
||||
)
|
||||
|
||||
func InitIothub() {
|
||||
@@ -15,6 +16,8 @@ func InitIothub() {
|
||||
go httpserver.InitHttpHook("", service)
|
||||
//初始化TCP
|
||||
go tcpserver.InitTcpHook("", service)
|
||||
|
||||
go updserver.InitUdpHook("", service)
|
||||
// 开启线程处理消息
|
||||
go service.MessageWork()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user