(hp Handler)
| 136 | } |
| 137 | |
| 138 | func (c *Conn) Handshake(hp Handler) error { |
| 139 | c.h = hp |
| 140 | if err := c.handshake(); err != nil { |
| 141 | c.Close() |
| 142 | return err |
| 143 | } |
| 144 | return nil |
| 145 | } |
| 146 | |
| 147 | func (c *Conn) handshake() error { |
| 148 | if err := c.writeInitialHandshake(); err != nil { |
no test coverage detected