Match the server's wire-type validation, including the negative-type guard.
| 29 | |
| 30 | // Match the server's wire-type validation, including the negative-type guard. |
| 31 | NetworkMessageFormatBase* GetFormat(int type) override |
| 32 | { |
| 33 | if (type < 0 || type >= NMTN) |
| 34 | { |
| 35 | return nullptr; |
| 36 | } |
| 37 | return GMsgFormats[type]; |
| 38 | } |
| 39 | |
| 40 | // Parser-only harness: accept and drop decoded messages, never dispatch. |
| 41 | void OnMessage(int from, NetworkMessage* msg, NetworkMessageType type) override {} |
no outgoing calls
no test coverage detected