【feat】udp协议

This commit is contained in:
XM-GO
2023-10-07 15:03:03 +08:00
parent 69b5061868
commit 65eb8d8ae2
8 changed files with 489 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ func InitTcpHook(addr string, hs *hook_message_work.HookService) {
server := NewTcpServer(addr)
err := server.Start(context.TODO())
if err != nil {
global.Log.Error("IOTHUB HTTP服务启动错误", err)
global.Log.Error("IOTHUB TCP服务启动错误", err)
return
} else {
global.Log.Infof("TCP IOTHUB HOOK Start SUCCESS, Server listen: %s", addr)