• Turbo Pascal/C TCPIP Library

    From Pilotcab@VERT/FBOBBS to All on Wednesday, September 14, 2022 06:25:40
    Hi All


    Is there a "native" tcpip library for turbo pascal? I know i could use lazarus and what-not to write the programs im thinking of, but if they're going to be runnnig on period hardware..... why not code them with period software :D

    Charlie

    ---
    þ Synchronet þ The FBO BBS - bbs.thefbo.us
  • From fusion@VERT/CFBBS to Pilotcab on Wednesday, September 14, 2022 09:49:00
    On 14 Sep 2022, Pilotcab said the following...

    Is there a "native" tcpip library for turbo pascal? I know i could use lazarus and what-not to write the programs im thinking of, but if
    they're going to be runnnig on period hardware..... why not code them
    with period software :D

    There are a few. Depends on what you mean by native. Packet drivers for several network cards of the era are available, as well the guy who made Trumpet Winsock back in the Windows 3 days also made a socket library you
    could use. The documentation is pretty good if you know a little assembly. People seem to like mTCP as well.

    That said DOS in general never came with that functionality so you'd be expecting a very limited group to actually configure everything to use what
    you wrote (and nobody on Windows without VirtualBox).

    ... A social life? Where can I download that!?

    --- Mystic BBS v1.12 A47 2021/12/25 (Windows/32)
    * Origin: cold fusion - cfbbs.net - grand rapids, mi
  • From Pilotcab@VERT/FBOBBS to fusion on Wednesday, September 14, 2022 15:56:13
    Re: Re: Turbo Pascal/C TCPIP Library
    By: fusion to Pilotcab on Wed Sep 14 2022 09:49:00

    Is there a "native" tcpip library for turbo pascal? I know i could use lazarus and what-not to write the programs im

    There are a few. Depends on what you mean by native. Packet drivers for several network cards of the era are available, as
    well the guy who made Trumpet Winsock back in the Windows 3 days also made a socket library you
    could use. The documentation is pretty good if you know a little assembly. People seem to like mTCP as well.

    yea i was afraid of that. i wonder if there's any way to do it with the windows tcp stack. mTCP works great on a dos machine. and iguess i'm one of those nutjobs that like running dos on period hardware :D

    That said DOS in general never came with that functionality so you'd be expecting a very limited group to actually configure
    everything to use what you wrote (and nobody on Windows without VirtualBox).

    i'm running synchro on a windows nt machine just cus i can :D I was wondering about writing "DOS" door. i've written a number of linux sided things, but want to cover both and i know absolutely zero java in any form :D

    charlie

    ---
    þ Synchronet þ The FBO BBS - bbs.thefbo.us
  • From Digital Man@VERT to Pilotcab on Thursday, September 15, 2022 10:34:58
    Re: Re: Turbo Pascal/C TCPIP Library
    By: Pilotcab to fusion on Wed Sep 14 2022 03:56 pm

    i'm running synchro on a windows nt machine just cus i can :D I was wondering about writing "DOS" door. i've written a number of linux sided things, but want to cover both and i know absolutely zero java in any form :D

    DOS doors run on Synchronet are assumed to use either COM (UART or FOSSIL) communications are stdio are are supported automatically. A DOS door running under Synchronet does not need its own TCP/IP stack or any knowledge of TCP/IP, sockets, etc.
    --
    digital man (rob)

    This Is Spinal Tap quote #45:
    I don't really think the end can be assessed as of itself as being the end Norco, CA WX: 73.1øF, 64.0% humidity, 0 mph E wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From MRO@VERT/BBSESINF to pilotcab on Thursday, September 15, 2022 17:19:11
    Re: Re: Turbo Pascal/C TCPIP Library
    By: Digital Man to Pilotcab on Thu Sep 15 2022 10:34 am

    wondering about writing "DOS" door. i've written a number of linux sided things, but want to cover both and i know absolutely zero java in any form :D


    also java is NOT javascript.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Charles Blackburn@VERT/FBOBBS to Digital Man on Thursday, September 15, 2022 15:40:47
    Re: Re: Turbo Pascal/C TCPIP Library
    By: Digital Man to Pilotcab on Thu Sep 15 2022 10:34:58

    DOS doors run on Synchronet are assumed to use either COM (UART or FOSSIL) communications are stdio are are supported
    automatically. A DOS door running under Synchronet does not need its own TCP/IP stack or any knowledge of TCP/IP, sockets,
    etc.

    oh cool.. so i can just run stdio as far as talking to the user? as long as i dont do anything fancy text wise i should be good.

    so that then begs the question (and yes i need to research more on this i know). i'm assuming the door file has the terminal type in it so that the program can tell if it's ansi capable or not?

    regards
    Charles Blackburn
    SYSOP - The F.B.O BBS
    Aviation related fun @ bbs.thefbo.us IPV4 and IPV6
    DOVE-Net
    Coming soon: FSX-Net, FIDO-Net

    ---
    þ Synchronet þ The FBO BBS - bbs.thefbo.us - A place for aviation fun....
  • From Digital Man@VERT to Charles Blackburn on Thursday, September 15, 2022 17:45:45
    Re: Re: Turbo Pascal/C TCPIP Library
    By: Charles Blackburn to Digital Man on Thu Sep 15 2022 03:40 pm

    Re: Re: Turbo Pascal/C TCPIP Library
    By: Digital Man to Pilotcab on Thu Sep 15 2022 10:34:58

    DOS doors run on Synchronet are assumed to use either COM (UART or FOSSIL) communications are stdio are are supported
    automatically. A DOS door running under Synchronet does not need its own TCP/IP stack or any knowledge of TCP/IP, sockets,
    etc.

    oh cool.. so i can just run stdio as far as talking to the user?

    You can, yes. But more advanced door (e.g. those that save state information to files), would be better written using COM I/O so that the door program can detect user disconnect and handle that gracefully (e.g. save state information to files). Most traditional door games, for example, are written using COM I/O.

    as long as
    i dont do anything fancy text wise i should be good.

    Fancy text is not a problem, stdio, or otherwise.

    so that then begs the question (and yes i need to research more on this i know). i'm assuming the door file has the terminal type in it so that the program can tell if it's ansi capable or not?

    Yes, the standard "drop files" contain that information. If you use a door development kit (and there are many of them), they handle these details for you (opening/reading the drop files, sending ANSI when appropriate, abstracting the reading and writing to the serial/COM port).
    --
    digital man (rob)

    Rush quote #53:
    He picks up scraps of conversation, radio and radiation .. Digital Man
    Norco, CA WX: 77.4øF, 56.0% humidity, 9 mph SE wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Charles Blackburn@VERT/FBOBBS to MRO on Thursday, September 15, 2022 19:01:29
    Re: Re: Turbo Pascal/C TCPIP Library
    By: MRO to pilotcab on Thu Sep 15 2022 17:19:11

    wondering about writing "DOS" door. i've written a number of linux sided things, but want to cover both and i know absolutely zero java in any form :D
    also java is NOT javascript.

    semantics... as far as i am concerned, i can't code in either :D

    regards
    Charles Blackburn
    SYSOP - The F.B.O BBS
    Aviation related fun @ bbs.thefbo.us IPV4 and IPV6
    DOVE-Net
    Coming soon: FSX-Net, FIDO-Net

    ---
    þ Synchronet þ The FBO BBS - bbs.thefbo.us - A place for aviation fun....
  • From Charles Blackburn@VERT/FBOBBS to Digital Man on Friday, September 16, 2022 06:42:52
    Re: Re: Turbo Pascal/C TCPIP Library
    By: Digital Man to Charles Blackburn on Thu Sep 15 2022 17:45:45

    You can, yes. But more advanced door (e.g. those that save state information to files), would be better written using COM
    I/O so that the door program can detect user disconnect and handle that gracefully (e.g. save state information to files).
    Most traditional door games, for example, are written using COM I/O.

    COM I/O would be opening uarts etc? how would that go with a telnet connection? I know in linux it's pretty much just a pipe but ??

    got a ton to read lol

    i dont do anything fancy text wise i should be good.
    Fancy text is not a problem, stdio, or otherwise.

    oooh curses maybe ?

    Yes, the standard "drop files" contain that information. If you use a door development kit (and there are many of them),
    they handle these details for you (opening/reading the drop files, sending ANSI when appropriate, abstracting the reading
    and writing to the serial/COM port).
    any particular one i should go get ?

    regards
    Charles Blackburn
    SYSOP - The F.B.O BBS 21:1/221
    Aviation related fun @ bbs.thefbo.us IPV4 and IPV6
    DOVE-Net FSX-Net USENET
    Coming soon: FIDO-Net

    ---
    þ Synchronet þ The FBO BBS - bbs.thefbo.us - A place for aviation fun....
  • From Digital Man@VERT to Charles Blackburn on Friday, September 16, 2022 08:59:06
    Re: Re: Turbo Pascal/C TCPIP Library
    By: Charles Blackburn to Digital Man on Fri Sep 16 2022 06:42 am

    Re: Re: Turbo Pascal/C TCPIP Library
    By: Digital Man to Charles Blackburn on Thu Sep 15 2022 17:45:45

    You can, yes. But more advanced door (e.g. those that save state information to files), would be better written using COM
    I/O so that the door program can detect user disconnect and handle that gracefully (e.g. save state information to files).
    Most traditional door games, for example, are written using COM I/O.

    COM I/O would be opening uarts etc? how would that go with a telnet connection?

    Just fine so long as you're using Synchronet for Windows. It has a built-in virtual UART and FOSSIL driver on Windows, for just this purpose. And on Linux, sysops use DOSEMU for this purpose.

    I know in linux it's pretty much just a pipe but ??

    Not for a 16-bit DOS program.

    got a ton to read lol

    i dont do anything fancy text wise i should be good.
    Fancy text is not a problem, stdio, or otherwise.

    oooh curses maybe ?

    Perhaps, but I don't think you'll find a curses implementation for TP.

    Yes, the standard "drop files" contain that information. If you use a door development kit (and there are many of them),
    they handle these details for you (opening/reading the drop files, sending ANSI when appropriate, abstracting the reading
    and writing to the serial/COM port).
    any particular one i should go get ?

    Try a bunch of them. OpenDoors is probably the best one for C/C++. For Pascal, I think there are a ton of options (door devkits), but 16-bit DOS or native (32-bit) is the first big fork in the road for you to decide.
    --
    digital man (rob)

    Synchronet "Real Fact" #98:
    Synchronet v3.12a was released on December 31st of 2004 (Rob's birthday)
    Norco, CA WX: 63.6øF, 93.0% humidity, 0 mph E wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net