| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package main
- import (
- pb "git.wanbits.io/joe/franklin/protos"
- "git.wanbits.io/joe/nnet"
- "time"
- )
- var (
- hubConfC = nnet.HubConfig{
- SizeOfSendChan: 1024,
- SizeOfRecvChan: 1024,
- ReadBufSize: 2048,
- WriteBufSize: 2048,
- Timeout: 3 * time.Second,
- Tick: 10 * time.Second,
- ReadTimeout: 12 * time.Second, // should greater than Tick
- }
- hubConfS = nnet.HubConfig{
- SizeOfSendChan: 1024,
- SizeOfRecvChan: 1024,
- ReadBufSize: 2048,
- WriteBufSize: 2048,
- Timeout: 3 * time.Second,
- Tick: 10 * time.Second,
- ReadTimeout: 12 * time.Second, // should greater than Tick
- }
- g_conf *pb.AppConf
- g_server nnet.IHub
- g_serverProto *CSProtocol
- g_rabbit nnet.IHub
- g_rabbitProto *RabbitCProtocol
- g_logics nnet.IHub
- g_taj nnet.IHub // lobbies
- g_offline bool
- )
|