Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drag&drop protocol confusing #106

Open
lpgb opened this issue Feb 25, 2022 · 6 comments
Open

drag&drop protocol confusing #106

lpgb opened this issue Feb 25, 2022 · 6 comments

Comments

@lpgb
Copy link
Member

lpgb commented Feb 25, 2022

Page: https://freemint.github.io/tos.hyp/en/proto_dd.html

This line:
10+n Variable Filename (NULL-terminated)

There's only one null terminated string in the header. Unless this line implies future expansion? Perhaps it should read:

10+n Variable Filename (NULL-terminated) (for future expansion)

I interpreted this as two strings in the header and ended up having to study Atari's leaked desktop sources to figure it out.

@th-otto
Copy link
Contributor

th-otto commented Feb 25, 2022

There are two strings the header, "data" and "filename". Both must be terminated with a zero byte.

@lpgb
Copy link
Member Author

lpgb commented Feb 25, 2022

Atari's AES 4.1 sends one string (multitos\deskact.c). There's some discrepancy then.

@mikrosk
Copy link
Member

mikrosk commented Feb 25, 2022

Quickly looked into my ancient mxPlay code, it seems that I also handle only the ARGS type. IIRC I tested it in everything -- MagiC, N.AES, XaAES.

@lpgb
Copy link
Member Author

lpgb commented Feb 26, 2022

The AES doesn't really matter. The AP_DRAGDROP message typically originates from desktops or programs.
Found a reference to -> Eric Smith: "Drag and Drop protocol, revision 1.1", ATARI Corporation 1993
Anyone have this document knocking around their hard drive?

Also from the leaked multitos sources (multitos\deskact.c) the comment at the top:
"* 921214 esmith Add new drag and drop code."

@pulsar122
Copy link
Contributor

 Eric Smith: "Drag and Drop protocol, revision 1.1", ATARI Corporation 1993
Anyone have this document knocking around their hard drive?

Is not only the text is a release note:
RELEASE.TXT

I don't read the text at the moment.

Regards, Gerhard

@lpgb
Copy link
Member Author

lpgb commented Feb 27, 2022

Gerhard, thanks for that doc. Although the doc says there's a 2nd null terminated string in the header, the included sample code doesn't agree, nor does AES 4.1. Now I see why various desktops are not consistent on this.

Just a theory, but maybe esmith realized the filename could be extracted from the data payload that is to follow and scrapped the 2nd null terminated string. Atari went bust the same year and the doc never gets revised. Or AES 4.1 implements version 1.0 of the protocol and there was an AES 4.2 that never saw the light of day. Who knows.

It's however hard to ignore the MultiTOS sources. I'm glad we have them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants