Re: Program in SBBS
By: Nugax to All on Thu Aug 18 2022 11:57 pm
Hi,
If I was to write a compiled program in C++ or FreePascal, and added as external program to SBBS, would it run properly?
If the program just sent output to STDOUT?
Yes. And that's perfectly acceptable design for a very simple external program.
But for more advanced external programs (say, games) you'd probably want to consider using a door dev kit (e.g. OpenDoors). Door devkits help solve problems such as how would you detect when the user disconnected and gracefully terminate your program?
But if you have no particular reason to write the progam in C++ or FreePascal, I would recommend trying JavaScript first, because with Synchronet and JS, you don't have to worry about stdio vs. socket I/O, etc.
If you do write it in C++ or FreePascal and you don't want to use a Door devkit, I would recommed using socket I/O instead of stdio.
--
digital man (rob)
Synchronet "Real Fact" #21:
The first commericial sale of Synchronet was to Las Vegas Playground BBS (1992) Norco, CA WX: 85.2øF, 42.0% humidity, 6 mph E wind, 0.00 inches rain/24hrs
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net