(params string)
| 188 | ) |
| 189 | |
| 190 | func parseMsgClientMeta(params string) int { |
| 191 | var bits int |
| 192 | parts := strings.SplitN(params, " ", 8) |
| 193 | for _, p := range parts { |
| 194 | switch p { |
| 195 | case "info": |
| 196 | bits |= constMsgMetaInfo |
| 197 | case "sub": |
| 198 | bits |= constMsgMetaSub |
| 199 | case "data": |
| 200 | bits |= constMsgMetaData |
| 201 | default: |
| 202 | // ignore |
| 203 | } |
| 204 | } |
| 205 | return bits |
| 206 | } |
| 207 | |
| 208 | // MsgSetInfo: C2S in set.what == "info" and sub.init message |
| 209 | type MsgSetInfo struct { |
no outgoing calls
no test coverage detected