MCPcopy
hub / github.com/txthinking/brook / Get

Method Get

nat.go:39–44  ·  view source on GitHub ↗
(src, dst string)

Source from the content-addressed store, hash-verified

37}
38
39func (n *NATTable) Get(src, dst string) string {
40 n.Lock.Lock()
41 defer n.Lock.Unlock()
42 s, _ := n.Table[src+dst]
43 return s
44}
45
46func (n *NATTable) Reset() {
47 n.Lock.Lock()

Callers 15

HandleMethod · 0.80
ListenAndServeMethod · 0.80
nat.goFile · 0.80
NewSimplePacketClientFunction · 0.80
NewDOHClientFunction · 0.80
NewPacketServerFunction · 0.80
ExchangeMethod · 0.80
ListenAndServeMethod · 0.80
ServeHTTPMethod · 0.80
ParseLinkFunction · 0.80
NewSimplePacketServerFunction · 0.80
NewStreamServerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected