InitCFC Initialize the cfc server
()
| 18 | |
| 19 | // InitCFC Initialize the cfc server |
| 20 | func InitCFC() error { |
| 21 | protocol := &tcp.DefaultProtocol{} |
| 22 | protocol.SetMaxPacketSize(uint32(GlobalConfig.MaxPacketSize)) |
| 23 | cfc.AsyncTCPServer = tcp.NewAsyncTCPServer(GlobalConfig.TCPBind, &callback{}, protocol) |
| 24 | return cfc.ListenAndServe() |
| 25 | } |
| 26 | |
| 27 | func updatHostStatus() { |
| 28 | for { |
no test coverage detected