| 1234567891011121314151617181920212223242526272829303132333435363738 |
- package main
- import (
- "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 *protos.AppConf
- g_server nnet.IHub
- g_prot *CSProtocol
- g_rabbit nnet.IHub
- g_logics nnet.IHub
- g_taj nnet.IHub // lobbies
- )
|