NewResponse creates a new response message Use DefaultVersion as a first argument, if you don't
(v Version, status Status, id uint32)
| 114 | // |
| 115 | // Use DefaultVersion as a first argument, if you don't |
| 116 | func NewResponse(v Version, status Status, id uint32) *Message { |
| 117 | return &Message{ |
| 118 | Version: v, |
| 119 | Code: Code(status), |
| 120 | RequestID: id, |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | // NewMessageWithGroups creates a new message with Groups of |
| 125 | // attributes. |