MCPcopy Create free account
hub / github.com/esrrhs/spp / processOpenRspFrame

Method processOpenRspFrame

proxy/inputer.go:118–133  ·  view source on GitHub ↗
(f *ProxyFrame)

Source from the content-addressed store, hash-verified

116}
117
118func (i *Inputer) processOpenRspFrame(f *ProxyFrame) {
119 id := f.OpenRspFrame.Id
120 v, ok := i.sonny.Load(id)
121 if !ok {
122 loggo.Info("Inputer processOpenRspFrame no sonnny %s", id)
123 return
124 }
125 sonny := v.(*ProxyConn)
126 if f.OpenRspFrame.Ret {
127 sonny.established = true
128 loggo.Info("Inputer processOpenRspFrame ok %s %s", id, sonny.conn.Info())
129 } else {
130 sonny.needclose = true
131 loggo.Info("Inputer processOpenRspFrame fail %s %s", id, sonny.conn.Info())
132 }
133}
134
135func (i *Inputer) listen(targetAddr string) error {
136

Callers 2

processOpenRspMethod · 0.80
processOpenRspMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected