Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address potential risks detected by Southeast University's threat detection scan. #331

Merged
merged 6 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func NoPoll4(request ziface.IRequest) {

func main() {

// 开启 Request 对象池模式
// 关闭 Request 对象池模式
server := znet.NewUserConfServer(&zconf.Config{RouterSlicesMode: true, TCPPort: 8999, Host: "127.0.0.1", RequestPoolMode: false})
server.AddRouterSlices(1, NoPoll1)
server.AddRouterSlices(2, NoPoll4)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"encoding/binary"
"encoding/hex"
"fmt"
"github.com/aceld/zinx/ziface"
"github.com/aceld/zinx/zlog"
"github.com/aceld/zinx/znet"
"os"
"os/signal"
"time"

"github.com/aceld/zinx/ziface"
"github.com/aceld/zinx/zlog"
"github.com/aceld/zinx/znet"
)

// Use this method to generate mock data. (使用该方法生成模拟数据)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package main

import (
"github.com/aceld/zinx/znet"
"time"

"github.com/aceld/zinx/znet"
)

func main() {
Expand Down
9 changes: 9 additions & 0 deletions examples/zinx_heartbeat/server_default/conf/zinx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"Name":"Zinx Heartbeat",
"Host":"127.0.0.1",
"TcpPort":8999,
"MaxConn":3,
"WorkerPoolSize":10,
"LogIsolationLevel": 1,
"HeartbeatMax": 10
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package main

import (
"time"

"github.com/aceld/zinx/ziface"
"github.com/aceld/zinx/znet"
"time"
)

func main() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package main

import (
"fmt"
"time"

"github.com/aceld/zinx/ziface"
"github.com/aceld/zinx/zlog"
"github.com/aceld/zinx/znet"
"time"
)

type TestRouter struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"

"github.com/aceld/zinx/ziface"
"github.com/aceld/zinx/zinx_app_demo/mmo_game/pb"
"github.com/aceld/zinx/zlog"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package main

import (
"fmt"
"time"

"github.com/aceld/zinx/ziface"
"github.com/aceld/zinx/znet"
"time"
)

func DefaultTest1(request ziface.IRequest) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"

"github.com/aceld/zinx/zconf"
"github.com/aceld/zinx/ziface"
"github.com/aceld/zinx/znet"
Expand Down
File renamed without changes.
File renamed without changes.
30 changes: 0 additions & 30 deletions examples/zinx_version_ex/ZinxV0.11Test/mylog/zinx.log

This file was deleted.

6 changes: 6 additions & 0 deletions zinx_app_demo/mmo_game/README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

[English](README.md) | 简体中文


## 〇. MMO Game Client 案例源代码(仅供学习使用)

https://github.com/aceld/mmo_game_client


## 一、应用案例介绍

​ “ 好了,以上Zinx的框架的一些核心功能我们已经完成了,那么接下来我们就要基于Zinx完成一个服务端的应用程序了,整理用一个游戏应用服务器作为Zinx的一个应用案例。”
Expand Down
4 changes: 4 additions & 0 deletions zinx_app_demo/mmo_game/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

English | [简体中文](README-CN.md)

## 0. MMO Game Client Source Code

https://github.com/aceld/mmo_game_client

## 1.Introduction to the Application Case

"In the previous chapters, we have completed some of the core functionalities of the Zinx framework. Now, we are going to build a server-side application based on Zinx. To illustrate this, we will use a game application server as an example of Zinx's practical application."
Expand Down
Binary file removed zinx_app_demo/mmo_game/game_client/client.exe
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Loading