Re: I mode cable/software
Posted: September 17th, 2023, 7:25 pm
It works!!!
Doing the data transfer was quite simple, except that I totally couldn't figure out how to terminate the damn data transfer once when all data was transferred. In hindsight, it's that's also quite simple:
The confusing part was that the executable has support for transferring data packets in message 20h (and also partial support in message 21h). I guess it's never actually using that feature, but it was kinda misleading:
I've early on decided that message 20h cannot be the termination message because it can transfer data packets.
And so I've unsuccessfully spent more than a week on finding any other ways of terminating the transfer ; /
Anyways, it's working now, and I can send a HTTP response header, and a small HTML file in the response body.
Hamster Club-i wants to download a "CGI" file with some kind of special checksum, so it does dislike my HTML file (but more importantly: it's successfully reaching the function where it is verifying if the downloaded "CGI" file is intact).
The browser's "iMenu" function is throwing something that looks like a japanese error message, prompting to press X button... which looks bad... but after pressing X, it does actually display my downloaded HTML page : )
Doing the data transfer was quite simple, except that I totally couldn't figure out how to terminate the damn data transfer once when all data was transferred. In hindsight, it's that's also quite simple:
Code: Select all
Use message 10h/11h to start the http connection (including sending/receiving the 1st data packet)
Use message 30h to transfer further data packets (if any)
Use message 31h to indicate no further data packets
Use message 20h/21h to terminate the http connection
I've early on decided that message 20h cannot be the termination message because it can transfer data packets.
And so I've unsuccessfully spent more than a week on finding any other ways of terminating the transfer ; /
Anyways, it's working now, and I can send a HTTP response header, and a small HTML file in the response body.
Hamster Club-i wants to download a "CGI" file with some kind of special checksum, so it does dislike my HTML file (but more importantly: it's successfully reaching the function where it is verifying if the downloaded "CGI" file is intact).
The browser's "iMenu" function is throwing something that looks like a japanese error message, prompting to press X button... which looks bad... but after pressing X, it does actually display my downloaded HTML page : )