Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Cat, n.: Lapwarmer with built-in buzzer.


dovenet / Programming / Re: Turbo Pascal/C TCPIP Library

SubjectAuthor
* Re: Turbo Pascal/C TCPIP Libraryfusion
`* Re: Turbo Pascal/C TCPIP LibraryPilotcab
 `* Re: Turbo Pascal/C TCPIP LibraryDigital Man
  +* Re: Turbo Pascal/C TCPIP LibraryMRO
  |`- Re: Turbo Pascal/C TCPIP LibraryCharles Blackburn
  `* Re: Turbo Pascal/C TCPIP LibraryCharles Blackburn
   `* Re: Turbo Pascal/C TCPIP LibraryDigital Man
    `* Re: Turbo Pascal/C TCPIP LibraryCharles Blackburn
     `- Re: Turbo Pascal/C TCPIP LibraryDigital Man

1
Re: Turbo Pascal/C TCPIP Library

<6321DBD9.5427.dove-prg@vert.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=9&group=DOVE-Net.Programming#9

  copy link   Newsgroups: DOVE-Net.Programming
From: fusion@VERT/CFBBS (fusion)
To: Pilotcab
Subject: Re: Turbo Pascal/C TCPIP Library
Message-ID: <6321DBD9.5427.dove-prg@vert.synchro.net>
Date: Wed, 14 Sep 2022 02:49:00 +0000
X-Comment-To: Pilotcab
Path: rocksolidbbs.com!not-for-mail
Newsgroups: DOVE-Net.Programming
X-FTN-PID: Synchronet 3.19c-Linux master/d518b0159 Sep 10 2022 GCC 8.3.0
X-FTN-CHRS: ASCII 1
WhenImported: 20220914064913-0700 c1e0
WhenExported: 20220914091864-0700 c1e0
ExportedFrom: VERT dove-prg 5427
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit
 by: fusion - Wed, 14 Sep 2022 02:49 UTC

On 14 Sep 2022, Pilotcab said the following...
Pi> Is there a "native" tcpip library for turbo pascal? I know i could use
Pi> lazarus and what-not to write the programs im thinking of, but if
Pi> they're going to be runnnig on period hardware..... why not code them
Pi> 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

Re: Turbo Pascal/C TCPIP Library

<632231DD.3.dove-program@bbs.thefbo.us>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=10&group=DOVE-Net.Programming#10

  copy link   Newsgroups: DOVE-Net.Programming
From: pilotcab@VERT/FBOBBS (Pilotcab)
To: fusion
Subject: Re: Turbo Pascal/C TCPIP Library
Message-ID: <632231DD.3.dove-program@bbs.thefbo.us>
Date: Wed, 14 Sep 2022 08:56:13 -0400
X-Comment-To: fusion
Path: rocksolidbbs.com!not-for-mail
Organization: The FBO BBS
Newsgroups: DOVE-Net.Programming
In-Reply-To: <6321DBD9.5427.dove-prg@vert.synchro.net>
References: <6321DBD9.5427.dove-prg@vert.synchro.net>
X-FTN-PID: Synchronet 3.19b-Win32 master/a2a9dc027 Jan 2 2022 MSC 1928
X-FTN-CHRS: CP437 2
WhenImported: 20220914155120-0700 c1e0
WhenExported: 20220914211854-0700 c1e0
ExportedFrom: VERT dove-prg 5428
WhenImported: 20220914155613-0400 c12c
WhenExported: 20220914185056-0400 c12c
ExportedFrom: FBOBBS dove-program 3
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Pilotcab - Wed, 14 Sep 2022 12:56 UTC

Re: Re: Turbo Pascal/C TCPIP Library
By: fusion to Pilotcab on Wed Sep 14 2022 09:49:00

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

fu> There are a few. Depends on what you mean by native. Packet drivers for several network cards of the era are available, as
fu> well the guy who made Trumpet Winsock back in the Windows 3 days also made a socket library you
fu> 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

fu> That said DOS in general never came with that functionality so you'd be expecting a very limited group to actually configure
fu> 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

Re: Turbo Pascal/C TCPIP Library

<63236242.5429.dove-prg@vert.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=11&group=DOVE-Net.Programming#11

  copy link   Newsgroups: DOVE-Net.Programming
From: digital.man@VERT (Digital Man)
To: Pilotcab
Subject: Re: Turbo Pascal/C TCPIP Library
Message-ID: <63236242.5429.dove-prg@vert.synchro.net>
Date: Thu, 15 Sep 2022 03:34:58 -0700
X-Comment-To: Pilotcab
Path: rocksolidbbs.com!not-for-mail
Organization: Vertrauen
Newsgroups: DOVE-Net.Programming
In-Reply-To: <632231DD.3.dove-program@bbs.thefbo.us>
References: <632231DD.3.dove-program@bbs.thefbo.us>
X-FTN-PID: Synchronet 3.19c-Linux master/d518b0159 Sep 10 2022 GCC 8.3.0
X-FTN-CHRS: CP437 2
WhenImported: 20220915103458-0700 c1e0
WhenExported: 20220915151853-0700 c1e0
ExportedFrom: VERT dove-prg 5429
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Digital Man - Thu, 15 Sep 2022 10:34 UTC

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

Re: Turbo Pascal/C TCPIP Library

<6323A4DF.882.dove-prg@bbses.info>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=12&group=DOVE-Net.Programming#12

  copy link   Newsgroups: DOVE-Net.Programming
From: mro@VERT/BBSESINF (MRO)
To: pilotcab
Subject: Re: Turbo Pascal/C TCPIP Library
Message-ID: <6323A4DF.882.dove-prg@bbses.info>
Date: Thu, 15 Sep 2022 10:19:11 -0500
X-Comment-To: pilotcab
Path: rocksolidbbs.com!not-for-mail
Organization: bbses.info
Newsgroups: DOVE-Net.Programming
In-Reply-To: <63236242.5429.dove-prg@vert.synchro.net>
References: <63236242.5429.dove-prg@vert.synchro.net>
X-FTN-PID: Synchronet 3.19b-Win32 master/a2a9dc027 Jan 2 2022 MSC 1928
X-FTN-CHRS: CP437 2
WhenImported: 20220915154404-0700 c1e0
WhenExported: 20220915211853-0700 c1e0
ExportedFrom: VERT dove-prg 5430
WhenImported: 20220915171911-0500 c168
WhenExported: 20220915174355-0500 c168
ExportedFrom: BBSESINF dove-prg 882
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: MRO - Thu, 15 Sep 2022 15:19 UTC

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 :::

Re: Turbo Pascal/C TCPIP Library

<63237FBF.2.dove-program@mybbs.com>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=13&group=DOVE-Net.Programming#13

  copy link   Newsgroups: DOVE-Net.Programming
From: charles.blackburn@VERT/FBOBBS (Charles Blackburn)
To: Digital Man
Subject: Re: Turbo Pascal/C TCPIP Library
Message-ID: <63237FBF.2.dove-program@mybbs.com>
Date: Thu, 15 Sep 2022 08:40:47 -0400
X-Comment-To: Digital Man
Path: rocksolidbbs.com!not-for-mail
Organization: THE FBO BBS
Newsgroups: DOVE-Net.Programming
In-Reply-To: <63236242.5429.dove-prg@vert.synchro.net>
References: <63236242.5429.dove-prg@vert.synchro.net>
X-FTN-PID: Synchronet 3.19c-Linux master/d518b0159 Sep 14 2022 GCC 11.2.0
X-FTN-CHRS: CP437 2
WhenImported: 20220915155214-0700 c1e0
WhenExported: 20220915211853-0700 c1e0
ExportedFrom: VERT dove-prg 5431
WhenImported: 20220915154047-0400 c12c
WhenExported: 20220915185152-0400 c12c
ExportedFrom: FBOBBS dove-program 2
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Charles Blackburn - Thu, 15 Sep 2022 12:40 UTC

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

DM> DOS doors run on Synchronet are assumed to use either COM (UART or FOSSIL) communications are stdio are are supported
DM> automatically. A DOS door running under Synchronet does not need its own TCP/IP stack or any knowledge of TCP/IP, sockets,
DM> 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....

Re: Turbo Pascal/C TCPIP Library

<6323C739.5432.dove-prg@vert.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=14&group=DOVE-Net.Programming#14

  copy link   Newsgroups: DOVE-Net.Programming
From: digital.man@VERT (Digital Man)
To: Charles Blackburn
Subject: Re: Turbo Pascal/C TCPIP Library
Message-ID: <6323C739.5432.dove-prg@vert.synchro.net>
Date: Thu, 15 Sep 2022 10:45:45 -0700
X-Comment-To: Charles Blackburn
Path: rocksolidbbs.com!not-for-mail
Organization: Vertrauen
Newsgroups: DOVE-Net.Programming
In-Reply-To: <63237FBF.2.dove-program@mybbs.com>
References: <63237FBF.2.dove-program@mybbs.com>
X-FTN-PID: Synchronet 3.19c-Linux master/d518b0159 Sep 10 2022 GCC 8.3.0
X-FTN-CHRS: CP437 2
WhenImported: 20220915174545-0700 c1e0
WhenExported: 20220915211853-0700 c1e0
ExportedFrom: VERT dove-prg 5432
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Digital Man - Thu, 15 Sep 2022 17:45 UTC

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
>
> DM> DOS doors run on Synchronet are assumed to use either COM (UART or
> DM> FOSSIL) communications are stdio are are supported
> DM> automatically. A DOS door running under Synchronet does not need its
> DM> own TCP/IP stack or any knowledge of TCP/IP, sockets,
> DM> 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

Re: Turbo Pascal/C TCPIP Library

<6323AEC9.4.dove-program@mybbs.com>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=15&group=DOVE-Net.Programming#15

  copy link   Newsgroups: DOVE-Net.Programming
From: charles.blackburn@VERT/FBOBBS (Charles Blackburn)
To: MRO
Subject: Re: Turbo Pascal/C TCPIP Library
Message-ID: <6323AEC9.4.dove-program@mybbs.com>
Date: Thu, 15 Sep 2022 12:01:29 -0400
X-Comment-To: MRO
Path: rocksolidbbs.com!not-for-mail
Organization: THE FBO BBS
Newsgroups: DOVE-Net.Programming
In-Reply-To: <6323A4DF.882.dove-prg@bbses.info>
References: <6323A4DF.882.dove-prg@bbses.info>
X-FTN-PID: Synchronet 3.19c-Linux master/d518b0159 Sep 14 2022 GCC 11.2.0
X-FTN-CHRS: CP437 2
WhenImported: 20220915215230-0700 c1e0
WhenExported: 20220916031863-0700 c1e0
ExportedFrom: VERT dove-prg 5433
WhenImported: 20220915190129-0400 c12c
WhenExported: 20220916005161-0400 c12c
ExportedFrom: FBOBBS dove-program 4
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Charles Blackburn - Thu, 15 Sep 2022 16:01 UTC

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
MR> 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....

Re: Turbo Pascal/C TCPIP Library

<6324532C.6.dove-program@mybbs.com>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=16&group=DOVE-Net.Programming#16

  copy link   Newsgroups: DOVE-Net.Programming
From: charles.blackburn@VERT/FBOBBS (Charles Blackburn)
To: Digital Man
Subject: Re: Turbo Pascal/C TCPIP Library
Message-ID: <6324532C.6.dove-program@mybbs.com>
Date: Thu, 15 Sep 2022 23:42:52 -0400
X-Comment-To: Digital Man
Path: rocksolidbbs.com!not-for-mail
Organization: THE FBO BBS
Newsgroups: DOVE-Net.Programming
In-Reply-To: <6323C739.5432.dove-prg@vert.synchro.net>
References: <6323C739.5432.dove-prg@vert.synchro.net>
X-FTN-PID: Synchronet 3.19c-Linux master/d518b0159 Sep 14 2022 GCC 11.2.0
X-FTN-CHRS: CP437 2
WhenImported: 20220916035213-0700 c1e0
WhenExported: 20220916091856-0700 c1e0
ExportedFrom: VERT dove-prg 5434
WhenImported: 20220916064252-0400 c12c
WhenExported: 20220916065160-0400 c12c
ExportedFrom: FBOBBS dove-program 6
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Charles Blackburn - Fri, 16 Sep 2022 03:42 UTC

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

DM> You can, yes. But more advanced door (e.g. those that save state information to files), would be better written using COM
DM> I/O so that the door program can detect user disconnect and handle that gracefully (e.g. save state information to files).
DM> 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.
DM> Fancy text is not a problem, stdio, or otherwise.

oooh curses maybe ?

DM> Yes, the standard "drop files" contain that information. If you use a door development kit (and there are many of them),
DM> they handle these details for you (opening/reading the drop files, sending ANSI when appropriate, abstracting the reading
DM> 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....

Re: Turbo Pascal/C TCPIP Library

<63249D4A.5435.dove-prg@vert.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=17&group=DOVE-Net.Programming#17

  copy link   Newsgroups: DOVE-Net.Programming
From: digital.man@VERT (Digital Man)
To: Charles Blackburn
Subject: Re: Turbo Pascal/C TCPIP Library
Message-ID: <63249D4A.5435.dove-prg@vert.synchro.net>
Date: Fri, 16 Sep 2022 01:59:06 -0700
X-Comment-To: Charles Blackburn
Path: rocksolidbbs.com!not-for-mail
Organization: Vertrauen
Newsgroups: DOVE-Net.Programming
In-Reply-To: <6324532C.6.dove-program@mybbs.com>
References: <6324532C.6.dove-program@mybbs.com>
X-FTN-PID: Synchronet 3.19c-Linux master/d518b0159 Sep 10 2022 GCC 8.3.0
X-FTN-CHRS: CP437 2
WhenImported: 20220916085906-0700 c1e0
WhenExported: 20220916091856-0700 c1e0
ExportedFrom: VERT dove-prg 5435
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Digital Man - Fri, 16 Sep 2022 08:59 UTC

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
>
> DM> You can, yes. But more advanced door (e.g. those that save state
> DM> information to files), would be better written using COM
> DM> I/O so that the door program can detect user disconnect and handle that
> DM> gracefully (e.g. save state information to files).
> DM> 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.
> DM> 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.

> DM> Yes, the standard "drop files" contain that information. If you use a
> DM> door development kit (and there are many of them),
> DM> they handle these details for you (opening/reading the drop files,
> DM> sending ANSI when appropriate, abstracting the reading
> DM> 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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor