Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fish-tennis committed Mar 25, 2024
1 parent 8a48ed1 commit 1416c97
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ func OnTest(conn Connection, packet Packet) {

[websocket](https://github.com/fish-tennis/gnet/blob/main/ws_connection_test.go)

## Client Connector Library
C#: [gnet_csharp](https://github.com/fish-tennis/gnet_csharp)

## Project

[game db&cache framework](https://github.com/fish-tennis/gentity)
Expand Down
3 changes: 3 additions & 0 deletions README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ func OnTest(conn Connection, packet Packet) {

[Websocket](https://github.com/fish-tennis/gnet/blob/main/ws_connection_test.go)

## 客户端网络库 Connector Library
C#: [gnet_csharp](https://github.com/fish-tennis/gnet_csharp)

## 项目演示

[游戏实体接口gentity](https://github.com/fish-tennis/gentity)
Expand Down
1 change: 1 addition & 0 deletions echo_proto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func TestEchoProto(t *testing.T) {
listenAddress := "127.0.0.1:10002"

serverCodec := NewProtoCodec(nil)
//serverCodec := NewXorProtoCodec([]byte("testKey"), nil)
serverHandler := NewDefaultConnectionHandler(serverCodec)
serverHandler.SetOnConnectedFunc(echoProtoOnConnected)
serverHandler.SetOnDisconnectedFunc(func(connection Connection) {
Expand Down
1 change: 1 addition & 0 deletions example/pb/test.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";

option go_package = "./pb";
option csharp_namespace = "pb";

package test;

Expand Down

0 comments on commit 1416c97

Please sign in to comment.