Magic numbers again
Dror Harari <[email protected]> Thu, 18 Jul 2002 01:37:26 -0700
| Newsgroups | gmane.comp.windows.devel.dime |
|---|---|
| Message-ID | <DIME%[email protected]> |
Does anyone of the DIME leaders care to explain the reason why no magic number is used in DIME. The question was rased in the past but no answer was given. Magic number adds virtually no overhead to the protocol (4 bypes per message) but it can be very helpful in various scenarios: - When analyzing wire protocols, a magic number makes it easy to identify the protocol and present it correctly - When a server needs to support multiple protocols, a magic number is indispensable. This is even more so with a new protocol such as DIME that may be used to replace older or proprietary protocols. Facilitating the recognition of DIME can help DIME to catch on faster. An alternative to a magic could be a common agreement on a special DIME 'magic record' but that's artificial and less usefull. Thanks, Dror Harari