(command byte, arg uint32)
| 37 | } |
| 38 | |
| 39 | func (c *Conn) writeCommandUint32(command byte, arg uint32) error { |
| 40 | c.ResetSequence() |
| 41 | |
| 42 | return c.WritePacket([]byte{ |
| 43 | 0x05, // 5 bytes long |
| 44 | 0x00, |
| 45 | 0x00, |
| 46 | 0x00, // sequence |
| 47 | |
| 48 | command, |
| 49 | |
| 50 | byte(arg), |
| 51 | byte(arg >> 8), |
| 52 | byte(arg >> 16), |
| 53 | byte(arg >> 24), |
| 54 | }) |
| 55 | } |
| 56 | |
| 57 | func (c *Conn) writeCommandStrStr(command byte, arg1 string, arg2 string) error { |
| 58 | c.ResetSequence() |
no test coverage detected