MCPcopy Create free account
hub / github.com/TalkingData/owl / InitCFC

Function InitCFC

cfc/server.go:20–25  ·  view source on GitHub ↗

InitCFC Initialize the cfc server

()

Source from the content-addressed store, hash-verified

18
19// InitCFC Initialize the cfc server
20func 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
27func updatHostStatus() {
28 for {

Callers 1

mainFunction · 0.85

Calls 2

SetMaxPacketSizeMethod · 0.80
ListenAndServeMethod · 0.80

Tested by

no test coverage detected