Re:Show HN: QBasic 4.5 on Android
by thatha7777 on Thursday November 09, 2023 @10:55AM
(#38206593)
Not with BabaBASIC (for now?). No networking support whatsoever :P
[ Parent
| on HN ]
Fairly certain jamon can wire in some io, let me nerd snipe in peace plz
Re:Show HN: QBasic 4.5 on Android
by thatha7777 on Thursday November 09, 2023 @12:17PM
(#38207844)
My apologies. BabaBASIC is here to make any Android-related anachronistic dream come true (˃̣̣̥ w ˂̣̣̥).
Re:Show HN: QBasic 4.5 on Android
by thatha7777 on Thursday November 09, 2023 @01:59PM
(#38209309)
I think I have a general idea on how to implement basic TCP/IP sockets while staying true to QBasic 4.5's spirit (i.e. not introducing functions like _OpenConnection/_ConnectionAddress etc.)
The "API" I have in mind would look something like
```
OPEN "TCP:\127.0.0.1\80\LISTEN" FOR INPUT AS #1 INPUT #1, CONN$ IF CONN$ <> "" REM CONN$ contains something like "TCP:\127.0.0.1\80\REMOTE_HOST\REMOTE_PORT" OPEN CONN$ AS #2
REM ... respond to request
PRINT #2, "200 OK"
CLOSE #2
END IF```