globaltest

command
v0.0.0-...-58a2b35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 15 Imported by: 0

README

文件信息:
1. 三个server,分别用了三个areaName进行隔离
2. 三个client,和三个server一一对应,每个客户端都会定期给global中对应的areaName客户端发送一个p2p消息,和一个广播消息
3. global_area.go中,使用了三个不同的areaName,用global进行统一启动,收到p2p消息后,会回复对应的p2p消息,并且发送p2p消息

启动顺序:
1. 先启动服务器,再启动对应客户端
2. 如果先启动client客户端,没有启动global_area的客户端,client的客户端将会有对应的发送超时信息
3. 如果两种客户端都启动了,双方都会收到对应消息(包含p2p及广播消息)
4. 无论哪个客户端发送广播消息,对应的服务器都会收到

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL