• Program in SBBS

    From Nugax@1:103/705 to All on Thu Aug 18 23:57:02 2022
    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?

    Thanks!

    -Nugax
    bbs.thebytexhange.com
    TBX Software

    ---
    þ Synchronet þ The ByteXchange BBS | bbs.thebytexchange.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Nugax on Fri Aug 19 12:16:45 2022
    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
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nugax@1:103/705 to Digital Man on Fri Aug 19 20:31:21 2022
    Re: Program in SBBS
    By: Digital Man to Nugax on Fri Aug 19 2022 12:16 pm

    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.

    How would one get the socket file descriptor to write to the socket?

    (Might be a dumb question)

    ---
    þ Synchronet þ The ByteXchange BBS | bbs.thebytexchange.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Nugax on Fri Aug 19 15:13:57 2022
    Re: Program in SBBS
    By: Nugax to Digital Man on Fri Aug 19 2022 08:31 pm

    Re: Program in SBBS
    By: Digital Man to Nugax on Fri Aug 19 2022 12:16 pm

    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.

    How would one get the socket file descriptor to write to the socket?

    (Might be a dumb question)

    Either from the command-line (%h command-line specifier in SCFG) or from a drop file (e.g. door32.sys).
    --
    digital man (rob)

    Synchronet "Real Fact" #39:
    Synchronet first supported Windows NT v6.x (a.k.a. Vista/Win7) w/v3.14a (2006) Norco, CA WX: 91.5øF, 36.0% humidity, 8 mph S wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nugax@1:103/705 to Digital Man on Sat Aug 20 00:05:09 2022
    Re: Program in SBBS
    By: Digital Man to Nugax on Fri Aug 19 2022 03:13 pm

    Either from the command-line (%h command-line specifier in SCFG) or from a drop file (e.g. door32.sys).

    Easy enough.

    Thanks.

    -Nugax

    ---
    þ Synchronet þ The ByteXchange BBS | bbs.thebytexchange.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)