Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fish-tennis committed Feb 27, 2024
1 parent 9c6bcf3 commit a0f8d78
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ High performance network library,especially for game servers
- Default support protobuf
- Optimize receiving and dispatching using lockless RingBuffer, which can improve performance by 5x for some cases
- Easy to implement custom encoding and decoding
- Support Tcp,WebSocket(ws and wss)

## Core module

Expand Down Expand Up @@ -79,11 +80,15 @@ func OnTest(conn Connection, packet Packet) {

[custom packet struct](https://github.com/fish-tennis/gnet/blob/main/custom_packet_no_ringbuffer_test.go)

[Simulate performance testing of a simple game server scenario](https://github.com/fish-tennis/gnet/blob/main/server_test.go)
[simulate performance testing of a simple game server scenario](https://github.com/fish-tennis/gnet/blob/main/server_test.go)

[tcp without ringbuffer](https://github.com/fish-tennis/gnet/blob/main/tcp_connection_simple_test.go)

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

## Project

[game entity framework](https://github.com/fish-tennis/gentity)
[game db&cache framework](https://github.com/fish-tennis/gentity)

[distributed game server framework](https://github.com/fish-tennis/gserver)

Expand Down
12 changes: 11 additions & 1 deletion README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
[![codecov](https://codecov.io/gh/fish-tennis/gnet/branch/main/graph/badge.svg?token=RJ1C0OJAMK)](https://codecov.io/gh/fish-tennis/gnet)
[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge-flat.svg)](https://github.com/avelino/awesome-go#networking)

基于go语言开发的游戏网络库
[English](https://github.com/fish-tennis/gnet/blob/main/README.md)

基于go语言开发的高性能网络库

## 功能

- 多线程,非阻塞
- 默认支持protobuf
- 使用无锁的RingBuffer优化收发包,针对游戏应用场景,性能可提高5倍
- 编解码接口易扩展
- 目前支持Tcp,WebSocket(ws and wss)

## 核心模块

Expand Down Expand Up @@ -81,10 +84,17 @@ func OnTest(conn Connection, packet Packet) {

[模拟一个简单的游戏应用场景的性能测试](https://github.com/fish-tennis/gnet/blob/main/example/server_test.go)

[不使用RingBuffer的Tcp](https://github.com/fish-tennis/gnet/blob/main/tcp_connection_simple_test.go)

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

## 优化原理

## 项目演示

[游戏实体接口gentity](https://github.com/fish-tennis/gentity)

[分布式游戏服务器框架gserver](https://github.com/fish-tennis/gserver)

## 讨论
QQ群: 764912827

0 comments on commit a0f8d78

Please sign in to comment.