MCPcopy
hub / github.com/gdy666/lucky / getHandlegoroutineNum

Method getHandlegoroutineNum

socketproxy/udpproxy.go:72–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72func (p *UDPProxy) getHandlegoroutineNum() int {
73 if p.Upm {
74 return runtime.NumCPU()
75 }
76 return 1
77}
78
79func (p *UDPProxy) SetUDPPacketSize(size int) {
80 if size <= 0 {

Callers 2

StartProxyMethod · 0.95
ListenHandlerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected