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

Function InitCfcProxy

proxy/proxy.go:23–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func InitCfcProxy() error {
24 protocol := &tcp.DefaultProtocol{}
25 protocol.SetMaxPacketSize(uint32(GlobalConfig.MaxPacketSize))
26 s := tcp.NewAsyncTCPServer(GlobalConfig.TCPBind, &callback{}, protocol)
27 proxy = &CFCProxy{
28 s,
29 &tcp.TCPConn{},
30 make(map[string]string),
31 sync.RWMutex{},
32 }
33 return proxy.srv.ListenAndServe()
34}
35
36// 发送插件同步请求
37func (proxy *CFCProxy) sendSyncPluginRequest(hostID string, p types.Plugin) error {

Callers 1

mainFunction · 0.85

Calls 2

SetMaxPacketSizeMethod · 0.80
ListenAndServeMethod · 0.80

Tested by

no test coverage detected