(f *ProxyFrame)
| 116 | } |
| 117 | |
| 118 | func (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 | |
| 135 | func (i *Inputer) listen(targetAddr string) error { |
| 136 |
no outgoing calls
no test coverage detected