Read a control line and process the intended op.
(c *control)
| 3107 | |
| 3108 | // Read a control line and process the intended op. |
| 3109 | func (nc *Conn) readOp(c *control) error { |
| 3110 | line, err := nc.readProto() |
| 3111 | if err != nil { |
| 3112 | return err |
| 3113 | } |
| 3114 | parseControl(line, c) |
| 3115 | return nil |
| 3116 | } |
| 3117 | |
| 3118 | // Parse a control line from the server. |
| 3119 | func parseControl(line string, c *control) { |
no test coverage detected