• DOOR32.SYS

    From Manuel Adorni@4:902/27 to Todos on Wed Oct 21 10:16:47 2015
    ¡Hola Todos!

    I want to use BBSLINK (bbslink.net, doors interbbs preconfigurated). The BBSLINK client use the DOOR32.SYS (and not anothers dropfiles).

    Exist a convert for DOOR.SYS to DOOR32.SYS (or DORINFOx.DEF to DOOR32.SYS) for execute before run the BBSLINK Client???


    Thanks.

    ¡Saludos!
    -=Momia=-

    --- GoldED+/W32 1.1.5-30512
    * Origin: Momia BBS - telnet://momiabbs.no-ip.info (4:902/27)
  • From mark lewis@1:3634/12.73 to Manuel Adorni on Wed Oct 21 11:28:28 2015

    21 Oct 15 10:16, you wrote to Todos:

    I want to use BBSLINK (bbslink.net, doors interbbs preconfigurated).
    The BBSLINK client use the DOOR32.SYS (and not anothers dropfiles).

    Exist a convert for DOOR.SYS to DOOR32.SYS (or DORINFOx.DEF to
    DOOR32.SYS) for execute before run the BBSLINK Client???

    the problem is two-fold...

    1. RA has no way to determine if the connection is POTS or TELNET...
    2. RA has no way of knowing the socket handle number of a telnet connection...

    the first two lines of door32.sys need the above in formation and there's just no way for RA to get that information...

    according to the 2000 revision 1 specification of DOOR32.SYS, three bbses supported it... Mystic, EleBBS, and Synchronet... i'm sure that others also support it these days... especially if they support telnet connections directly
    without needing a shim providing a virtual modem...

    aside from the above, i don't know of any way of running DOOR32.SYS doors from a RA system...

    )\/(ark

    ... I majored in Animal Husbandry.... until they caught me at it.
    ---
    * Origin: (1:3634/12.73)
  • From Manuel Adorni@4:902/27 to mark lewis on Wed Oct 21 18:36:45 2015
    ¡Hola mark!

    El Miércoles 21 Octubre 2015 a las 11:28, mark lewis escribió a Manuel Adorni:

    1. RA has no way to determine if the connection is POTS or TELNET...

    Ever will be TELNET in my case.

    2. RA has no way of knowing the socket handle number of a telnet connection...

    the first two lines of door32.sys need the above in formation and
    there's just no way for RA to get that information...

    I make manually the fist two line because are static data (ever telnet)

    aside from the above, i don't know of any way of running DOOR32.SYS
    doors from a RA system...

    ¡Saludos!
    -=Momia=-

    --- GoldED+/W32 1.1.5-30512
    * Origin: Momia BBS - telnet://momiabbs.no-ip.info (4:902/27)
  • From Dennis Ayala@1:135/301 to Manuel Adorni on Thu Oct 22 00:57:58 2015

    Hello Manuel!

    21 Oct 15 18:36, you wrote to mark lewis:

    Ever will be TELNET in my case.

    http://pcmicro.com/NetFoss/telsrv.html

    Here's an example os RA using TelSrv 4.0. In this example, they call NetFoss (NF.BAT) and pass the handle as a command line parameter. You just include some
    lines in the NF.bat to create a custom DOOR32.SYS using this info so that when the BBSLink door runs, it can read the custom DOOR32.SYS and let you connect.

    Contact me over email and we'll discuss it further.

    Saludos,

    Dennis


    --- GoldED+/LNX 1.1.5-b20150715
    * Origin: The Wall Caribbean & Central American Hub (1:135/301)
  • From mark lewis@1:3634/12.73 to Manuel Adorni on Wed Oct 21 23:10:36 2015

    21 Oct 15 18:36, you wrote to me:

    1. RA has no way to determine if the connection is POTS or TELNET...

    Ever will be TELNET in my case.

    then you might be able to fake the first line in the door32.sys file but the second line cannot be done... read below...

    2. RA has no way of knowing the socket handle number of a telnet
    connection...

    the first two lines of door32.sys need the above in formation and
    there's just no way for RA to get that information...

    I make manually the fist two line because are static data (ever telnet)

    you cannot make the second line... the socket handle changes every time there's
    a new connection... the socket handle is not the same as the port... there's a new socket handle created for each connection no matter what port the connection is on... i don't have any active connections at the moment that i can show you what i'm talking about...

    aside from the above, i don't know of any way of running DOOR32.SYS
    doors from a RA system...

    it may be possible that your virtual modem software might be able to pass the socket handle some how but i don't know where it could be stored other than maybe an environment variable... the socket handle would have to be grabbed and
    stored by your .bat file between the mailer and the bbs... if you're not running a mailer in front of RA, i don't know how you would be able to grab the
    socket handle to save for use later...

    )\/(ark

    ... Yeah, I got a modem, a real fast one too, it's a 300bps!
    ---
    * Origin: (1:3634/12.73)
  • From mark lewis@1:3634/12.73 to Manuel Adorni on Wed Oct 21 23:27:52 2015

    21 Oct 15 23:10, I wrote to you:

    you cannot make the second line... the socket handle changes every time there's a new connection... the socket handle is not the same as the port... there's a new socket handle created for each connection no matter what port the connection is on... i don't have any active connections at the moment that i can show you what i'm talking about...

    ahh... i finally got a couple of connections going so here's an example...

    socket type foreign local foreign state
    port port host
    ====== ====== ======= ====== =============== ===========
    819 stream 56959 80 66.249.69.61 established
    820 stream 34241 80 66.249.69.78 established
    841 stream 50595 80 66.249.69.61 established
    850 stream 43794 80 66.249.69.61 established
    872 stream 2446 80 89.123.163.179 established
    893 stream 43490 80 68.180.228.227 established

    note the socket numbers (1st column) are all for my local port 80 (4th column)... when my socket numbers reach the largest value, 65535 IIRC, they will start over again...

    one can generally see these values via a tool called netstat... it has different parameters on different operating systems... the above was taken from
    my main OS/2 system using "netstat -s"... i know that it is different on winwhatever systems...

    )\/(ark

    ... Everything started life as someone's daydream.
    ---
    * Origin: (1:3634/12.73)
  • From mark lewis@1:3634/12.73 to Dennis Ayala on Thu Oct 22 08:13:28 2015

    22 Oct 15 00:57, you wrote to Manuel Adorni:

    Ever will be TELNET in my case.

    http://pcmicro.com/NetFoss/telsrv.html

    Here's an example os RA using TelSrv 4.0. In this example, they call NetFoss (NF.BAT) and pass the handle as a command line parameter.

    how do they get the socket handle? oh oh oh... telsrv is running in front? telsrv is what calls netfoss?

    You just include some lines in the NF.bat to create a custom
    DOOR32.SYS using this info so that when the BBSLink door runs, it can
    read the custom DOOR32.SYS and let you connect.

    i'll take a look too because this likely won't be the only inquiry like this ;)

    Contact me over email and we'll discuss it further.

    the discussion is quite welcome here... i'm sure that others are interested in doing the same type of thing with their RA systems...

    )\/(ark

    ... Now go back in your box like a good little fellow.
    ---
    * Origin: (1:3634/12.73)
  • From mark lewis@1:3634/12.73 to Dennis Ayala on Thu Oct 22 08:41:10 2015

    22 Oct 15 08:13, I wrote to you:

    http://pcmicro.com/NetFoss/telsrv.html

    Here's an example os RA using TelSrv 4.0. In this example, they call
    NetFoss (NF.BAT) and pass the handle as a command line parameter.

    i took a look and it appears that the site/page is out of date... the first thing is that the link to telsrv doesn't work when clicked... it comes back and
    says the file is not found when using an anonymous connection... so i went looking... it seems that mannsoft is no longer around and that telsrv was renamed to gamesrv now handled by rick parrish... a quick search for gamesrv turned up

    https://www.gamesrv.ca/

    and the current version available in the downloads link is v14.08.14...

    i do see now that telsrv/gamesrv is being used as the telnet server instead of having netfoss or netserial running in front... i knew that there had to be a way to grab the handle but i didn't know how one could do that without assistance from the virtual modem software or some way of triggering a dobbs.bat or similar so that the socket handle might be dug out somehow...

    )\/(ark

    ... Champions are rarely chosen from the ranks of the unscarred
    ---
    * Origin: (1:3634/12.73)
  • From Manuel Adorni@4:902/27 to mark lewis on Fri Oct 23 10:21:39 2015
    ¡Hola mark!

    El Miércoles 21 Octubre 2015 a las 23:27, mark lewis escribió a Manuel Adorni:

    socket type foreign local foreign state
    port port host

    How i can read the COM Socket handle??? Or is imposible?

    ¡Saludos!
    -=Momia=-

    --- GoldED+/W32 1.1.5-30512
    * Origin: Momia BBS - telnet://momiabbs.no-ip.info (4:902/27)
  • From mark lewis@1:3634/12.73 to Manuel Adorni on Fri Oct 23 11:16:16 2015

    23 Oct 15 10:21, you wrote to me:

    socket type foreign local foreign state
    port port host

    How i can read the COM Socket handle??? Or is imposible?

    in the chart i posted, that was from netstat... the telnet com socket handle would be identified by the local port of 23 if telnet is being run on the standard telnet port... it is impossible to get the socket handle number without assistance from the telnet connection software or from the virtual modem...


    the only way i see to do it is as was pointed out by another poster... that solution is to use what is now known as gamesrv as your telnet server... gamesrv fires up netfoss via the nf.bat... the socket handle number is passed between gamesrv and netfoss via the % parameters in the .bat... the socket number may be saved in the nf.bat file for use later...

    eg: gamesrv -> nf.bat -> ra

    inside nf.bat a line can be added to set the handle into an environment variable...


    eg: modified from the pcmicro page... http://pcmicro.com/NetFoss/telsrv.html

    @echo off
    REM NF.BAT for NetFoss
    REM the next line is to capture the socket handle
    set T-HANDLE=%1
    shift
    REM now we processing like normal
    c:\telsrv\netfoss.com %1
    if errorlevel 1 goto end
    c:\telsrv\netcom.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
    c:\telsrv\netfoss.com /u
    :end


    and the command line in telsrv/gamesrv would be

    c:\telsrv\nf.bat *H /n*N /h*H c:\ra\ra.exe -n*N -B57600


    what we've done is to add the first "*H" to the nf.bat command line so that we can capture just the socket number via %1... then in nf.bat we've added a line to set the socket number into our %variable... finally we shift all the rest of
    the parameters left one place and continue nf.bat as if nothing had changed...

    now when creating the door32.sys file, the value of %T-HANDLE is available to be placed into line 2 as needed...


    the tricky part is going to be creating the door32.sys but i have an idea on that, too... it uses one of RA's template capabilities to make a stub file with
    all the other lines needed from line 3 to the end of the drop file... in the menu line for the door would be something like

    *c /c mydoor.bat *Sd32sys

    which will use the RATemplate file D32SYS.RAT in the main RA directory to create a file named "D32SYS" in the node's directory... D32SYS.RAT would look like this...

    ===== snip =====
    ^KR
    RemoteAccess 2.60

    ^Fa
    ^F3
    ^Fo
    ^F_
    1
    ^KW
    ===== snip =====

    ^K is the actual ALT-011 character
    ^F is the actual ALT-006 character

    the blank line is for the user's record number and we don't have any way to get
    that via these ^K and ^F macros... the '1' in the next to last line /forces/ ANSI mode because we can't determine which of ASCII, ANSI, Avatar or RIP is used via the macros without some script processing of the values... since RA doesn't do Max Graphics, we don't have to worry about that one...

    then in your door's bat file we would do something like this...

    ===== snip =====
    @echo off
    REM mydoor.bat
    REM start with a new door32.sys and show a telnet connection
    echo 2 > door32.sys

    REM set socket handle in door32.sys
    echo %T-HANDLE >> door32.sys

    REM get the rest of the settings from the d32sys file
    type d32sys >> door32.sys

    REM now run our door and cross our fingers
    runmydoor.exe
    :end
    ===== snip =====


    NOTE: i've not actually tested any of this... it should work or at least be very very close to what is needed :)


    )\/(ark

    ... We may be alone or not; either way, the thought is staggering.
    ---
    * Origin: (1:3634/12.73)
  • From Dennis Ayala@1:135/301 to mark lewis on Fri Oct 23 13:53:48 2015

    Hello mark!

    22 Oct 15 08:13, you wrote to me:


    how do they get the socket handle? oh oh oh... telsrv is running in
    front? telsrv is what calls netfoss?

    Yes, the TelServ telnet server received the connection and amongst the parameters to NETFOSS, one is the telnet handle.


    You just include some lines in the NF.bat to create a custom
    DOOR32.SYS using this info so that when the BBSLink door runs, it
    can read the custom DOOR32.SYS and let you connect.

    i'll take a look too because this likely won't be the only inquiry
    like this ;)

    If anyone has this setup, I will definitely help.


    the discussion is quite welcome here... i'm sure that others are interested in doing the same type of thing with their RA systems...

    Regards,

    Dennis


    --- GoldED+/LNX 1.1.5-b20150715
    * Origin: The Wall Caribbean & Central American Hub (1:135/301)
  • From Dennis Ayala@1:135/301 to mark lewis on Fri Oct 23 13:56:10 2015

    Hello mark!

    22 Oct 15 08:41, you wrote to me:

    i took a look and it appears that the site/page is out of date... the first thing is that the link to telsrv doesn't work when clicked... it comes back and says the file is not found when using an anonymous connection... so i went looking... it seems that mannsoft is no longer around and that telsrv was renamed to gamesrv now handled by rick parrish... a quick search for gamesrv turned up

    TelSrv is one example. Any current external telnet server should do just fine.

    https://www.gamesrv.ca/

    For example.

    and the current version available in the downloads link is
    v14.08.14...

    i do see now that telsrv/gamesrv is being used as the telnet server instead of having netfoss or netserial running in front... i knew that there had to be a way to grab the handle but i didn't know how one
    could do that without assistance from the virtual modem software or
    some way of triggering a dobbs.bat or similar so that the socket
    handle might be dug out somehow...


    Yes. Now that you have access to the telnet handle, you can create a dummy DOOR32.SYS for BBSlink. Obviously we might need to do some tweaking to do until
    we get the BBSLink to work but its doable.


    Dennis


    --- GoldED+/LNX 1.1.5-b20150715
    * Origin: The Wall Caribbean & Central American Hub (1:135/301)
  • From Dennis Ayala@1:135/301 to mark lewis on Fri Oct 23 14:03:54 2015

    Hello mark!

    23 Oct 15 11:16, you wrote to Manuel Adorni:


    23 Oct 15 10:21, you wrote to me:

    socket type foreign local foreign state
    port port host

    How i can read the COM Socket handle??? Or is imposible?

    in the chart i posted, that was from netstat... the telnet com socket handle would be identified by the local port of 23 if telnet is being
    run on the standard telnet port... it is impossible to get the socket handle number without assistance from the telnet connection software
    or from the virtual modem...

    True

    the only way i see to do it is as was pointed out by another poster... that solution is to use what is now known as gamesrv as your telnet server... gamesrv fires up netfoss via the nf.bat... the socket handle number is passed between gamesrv and netfoss via the % parameters in
    the .bat... the socket number may be saved in the nf.bat file for use later...

    eg: gamesrv -> nf.bat -> ra

    inside nf.bat a line can be added to set the handle into an
    environment variable...

    Exactly.

    eg: modified from the pcmicro page... http://pcmicro.com/NetFoss/telsrv.html

    @echo off
    REM NF.BAT for NetFoss
    REM the next line is to capture the socket handle
    set T-HANDLE=%1
    shift
    REM now we processing like normal
    c:\telsrv\netfoss.com %1
    if errorlevel 1 goto end
    c:\telsrv\netcom.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
    c:\telsrv\netfoss.com /u
    :end


    and the command line in telsrv/gamesrv would be

    c:\telsrv\nf.bat *H /n*N /h*H c:\ra\ra.exe -n*N -B57600


    what we've done is to add the first "*H" to the nf.bat command line so that we can capture just the socket number via %1... then in nf.bat
    we've added a line to set the socket number into our %variable...
    finally we shift all the rest of the parameters left one place and continue nf.bat as if nothing had changed...

    now when creating the door32.sys file, the value of %T-HANDLE is
    available to be placed into line 2 as needed...


    the tricky part is going to be creating the door32.sys but i have an
    idea on that, too... it uses one of RA's template capabilities to make
    a stub file with all the other lines needed from line 3 to the end of
    the drop file... in the menu line for the door would be something like

    *c /c mydoor.bat *Sd32sys

    which will use the RATemplate file D32SYS.RAT in the main RA directory
    to create a file named "D32SYS" in the node's directory... D32SYS.RAT would look like this...

    ===== snip =====
    ^KR
    RemoteAccess 2.60

    ^Fa
    ^F3
    ^Fo
    ^F_
    1
    ^KW
    ===== snip =====

    ^K is the actual ALT-011 character
    ^F is the actual ALT-006 character

    the blank line is for the user's record number and we don't have any
    way to get that via these ^K and ^F macros... the '1' in the next to
    last line /forces/ ANSI mode because we can't determine which of
    ASCII, ANSI, Avatar or RIP is used via the macros without some script processing of the values... since RA doesn't do Max Graphics, we don't have to worry about that one...

    then in your door's bat file we would do something like this...

    ===== snip =====
    @echo off
    REM mydoor.bat
    REM start with a new door32.sys and show a telnet connection
    echo 2 > door32.sys

    REM set socket handle in door32.sys
    echo %T-HANDLE >> door32.sys

    REM get the rest of the settings from the d32sys file
    type d32sys >> door32.sys

    REM now run our door and cross our fingers
    runmydoor.exe
    :end
    ===== snip =====

    I don't know RA but that sounds just right. Since the BBSLink client for windows is based on the R&M Telnet Door, it needs the DOOR32.SYS. From this file, it should get the Handle and the user number. The only thing else that's needed it the door code and that you pass manually as a parameter when invoking
    the telnet door from the RA menu.


    NOTE: i've not actually tested any of this... it should work or at
    least be very very close to what is needed :)


    Dennis


    --- GoldED+/LNX 1.1.5-b20150715
    * Origin: The Wall Caribbean & Central American Hub (1:135/301)
  • From mark lewis@1:3634/12.73 to Dennis Ayala on Fri Oct 23 16:02:40 2015

    23 Oct 15 14:03, you wrote to me:

    the tricky part is going to be creating the door32.sys but i have an
    idea on that, too... it uses one of RA's template capabilities to
    make a stub file with all the other lines needed from line 3 to the
    end of the drop file... in the menu line for the door would be
    something like

    *c /c mydoor.bat *Sd32sys

    i found *R will emit the user's record number to the .bat file...

    which will use the RATemplate file D32SYS.RAT in the main RA
    directory to create a file named "D32SYS" in the node's directory...
    D32SYS.RAT would look like this...

    ===== snip =====
    ^KR
    RemoteAccess 2.60

    ^Fa
    ^F3
    ^Fo
    ^F_
    1
    ^KW
    ===== snip =====

    ^K is the actual ALT-011 character
    ^F is the actual ALT-006 character

    the blank line is for the user's record number and we don't have any
    way to get that via these ^K and ^F macros...

    see above... i found that we can get the user number on the command line but figuring out how to drop it into the D32SYS or final DOOR32.SYS file is another
    problem... looks like we might have to pass the speed and BBS name and version as parameters to the BAT file so we can get the user number in there... that'll
    change the RAT file, the menu line and the MYDOOR.BAT file...

    the '1' in the next to last line /forces/ ANSI mode because we can't
    determine which of ASCII, ANSI, Avatar or RIP is used via the macros
    without some script processing of the values... since RA doesn't do
    Max Graphics, we don't have to worry about that one...

    then in your door's bat file we would do something like this...

    ===== snip =====
    @echo off
    REM mydoor.bat
    REM start with a new door32.sys and show a telnet connection
    echo 2 > door32.sys

    REM set socket handle in door32.sys
    echo %T-HANDLE >> door32.sys

    REM get the rest of the settings from the d32sys file
    type d32sys >> door32.sys

    REM now run our door and cross our fingers
    runmydoor.exe
    :end
    ===== snip =====

    we cannot run two RAT files so building everything that we can into the one D32SYS file is all we have at this point... it is going to take some serious BAT magic to replace the blank line with the contents of %1 in the about MYDOOR.BAT file...

    I don't know RA but that sounds just right. Since the BBSLink client
    for windows is based on the R&M Telnet Door, it needs the DOOR32.SYS.
    From this file, it should get the Handle and the user number.

    we rarely do anything with user numbers... getting that out and into the door32.sys file is going to be tough...

    The only thing else that's needed it the door code and that you pass manually as a parameter when invoking the telnet door from the RA
    menu.

    yeah, that can be added in elsewhere... right now i want to try to get DOOR32.SYS files being created properly... then the rest should be a no-brainer
    ;)

    NOTE: i've not actually tested any of this... it should work or at
    least be very very close to what is needed :)

    this still stands but i am kicking this through my system as a test just to see
    if i can get a valid DOOR32.SYS to be written...

    )\/(ark

    ... Don't deep fry ANYTHING in the nude; bread it first.
    ---
    * Origin: (1:3634/12.73)
  • From mark lewis@1:3634/12.73 to Dennis Ayala on Sat Oct 24 14:53:32 2015

    23 Oct 15 16:02, I wrote to Dennis Ayala:

    see above... i found that we can get the user number on the command
    line but figuring out how to drop it into the D32SYS or final
    DOOR32.SYS file is another problem... looks like we might have to pass
    the speed and BBS name and version as parameters to the BAT file so we
    can get the user number in there... that'll change the RAT file, the
    menu line and the MYDOOR.BAT file...

    i got this working as a test on my OS/2 system *BUT* it requires 4DOS to be able to process each line of the D32SYS file created by the RAT template... we have to echo each line so that the %VARIABLEs will be filled in with their contents from the environment when writing the DOOR32.SYS file... in RA i'm passing *R on the command line to get the user's record number... that is then set in an environment variable %RECNUMB in the bat file...


    the ramenu line for the door looks like this

    *c /c c:\ra\d32sys.bat *r *sd32sys *m


    D32SYS.BAT file looks like this...

    ===== begin D32SYS.BAT =====
    @echo off
    if exist door32.sys del door32.sys
    set RECNUMB=%1
    for /l %foo in (0,1,%@EVAL[%@LINES[D32SYS.]-1] do echo %@LINE[D32SYS.,%foo] >> DOOR32.SYS
    ===== end D32SYS.BAT =====


    D32SYS.RAT looks like this

    ===== begin D32SYS.RAT =====
    2
    %SOCKHAND
    ^Kr
    RemoteAccess 2.62
    %RECNUMB
    ^Fa
    ^F3
    ^Fo
    ^F_
    1
    ^Kw
    ===== end D32SYS.RAT =====


    the command line in GAMESRV would look like

    c:\gamesrv\nf.bat *H /n*N /h*H c:\ra\ra.exe -n*N -B57600


    and NF.BAT would look like this

    ===== begin NF.BAT =====
    @echo off
    REM NF.BAT for NetFoss
    REM capture the socket handle to SOCKHAND
    set SOCKHAND=%1
    shift
    REM now process as normal before the above 2 lines were added c:\gamesrv\netfoss.com %1
    if errorlevel 1 goto end
    c:\gamesrv\netcom.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
    c:\gamesrv\netfoss.com /u
    :end

    ===== end NF.BAT =====

    i had to change T-HANDLE to SOCKHAND because i found on my system that a '-' broke the variable name... SOCKHAND is short form of SocketHandle...


    NOTE: the above should work IF 4DOS or 4NT can be employed... i do not know how
    to have winwhatever script files process a data file line by line and echo each
    line with the %VARs replaced back out to a destination file... *MAYBE* the following line can replace the one above in the D32SYS.BAT file above...

    for /f "delims=" %%x in (D32SYS.) do echo %%x >> DOOR32.SYS

    i don't know and will have to try to get on a Vista machine to test it... i have no way to test it beyond Vista... hopefully the "echo %%x" part will properly fill in the two %SOCKHAND and %RECNUM vars in the file with their contents from the environment when it runs...


    )\/(ark

    ... I *do* have a 32" waist. My fat is there to protect my perfect body ;*) ---
    * Origin: (1:3634/12.73)
  • From Dennis Ayala@1:135/301 to mark lewis on Sat Oct 24 16:03:34 2015

    Hello mark!

    23 Oct 15 16:02, you wrote to me:


    i found *R will emit the user's record number to the .bat file...

    This and the handle. Thats all we need to get as parameters. The rest of the data can be hardcoded on the batchfile to create when the DOOR32.SYS is created.


    see above... i found that we can get the user number on the command
    line but figuring out how to drop it into the D32SYS or final
    DOOR32.SYS file is another problem... looks like we might have to pass
    the speed and BBS name and version as parameters to the BAT file so we
    can get the user number in there... that'll change the RAT file, the
    menu line and the MYDOOR.BAT file...






    we rarely do anything with user numbers... getting that out and into
    the door32.sys file is going to be tough...

    Not really as you can receive cooand line parameters on the batch file that executes the door and from there create the temporary DOOR32.SYS.
    For example, if you invoke:

    C:\BBS\BBSLINK.BAT *H *R *N lord

    from within the batch file you need to create the DOOR32.SYS before invoking BBSLINK.EXE like:

    REM ##########################
    REM # CREATE DOOR32.SYS
    REM ##########################
    TYPE "1" > DOOR32.SYS <--- Line 1 : Comm type
    (0=local, 1=serial, 2=telnet)
    TYPE %1 >> DOOR32.SYS <--- Line 2 : Comm or socket handle
    TYPE 57600 >> DOOR32.SYS <--- Line 3 : Baud rate TYPE "Remote Access 2.62" >> DOOR32.SYS <--- Line 4 : BBSID (software name and version)
    TYPE %2 >> DOOR32.SYS <--- Line 5 : User record position (1-based)
    TYPE "Joe User" >> DOOR32.SYS <--- Line 6 : User's real name
    TYPE "Joe Handle" >> DOOR32.SYS <--- Line 7 : User's handle/alias
    TYPE "10" >> DOOR32.SYS <--- Line 8 : User's security level
    TYPE "500" >> DOOR32.SYS <--- Line 9 : User's time left (in minutes)
    TYPE "1" >> DOOR32.SYS <--- Line 10: Emulation
    (0 = ASCII, 1 = ANSI, 2 = AVATAR, 3 = RIP)
    TYPE %3 >> NDOOR32.SYS <--- Line 11: Current node number

    REM #########################
    REM # INVOKE BBSLINK
    REM #########################
    BBS.LINK.EXE %4 %2

    Something like this....

    Let me know if you can achieve this.

    Dennis


    --- GoldED+/LNX 1.1.5-b20150715
    * Origin: The Wall Caribbean & Central American Hub (1:135/301)
  • From mark lewis@1:3634/12.73 to Dennis Ayala on Mon Oct 26 13:47:14 2015

    24 Oct 15 16:03, you wrote to me:

    Let me know if you can achieve this.

    i have been able to do this and perform limited testing on a vista box... i do not have RA installed on winwhatever... i do not have telsrv or gamesrv installed, either... the testing was done by taking the resulting d32sys file generated by RA and the .bat file over to the vista machine... then i simply ran the .bat in a command prompt window to generate the door32.sys file...

    i had to change the way i can do it on OS/2 with 4DOS... instead it has to be done in a very ugly way which requires changes the RAT file... as noted previously, SOCKHAND should be set in NF.BAT using the modified gamesrv command
    line and the modified NF.BAT i posted in a previous message...


    the menu command line in RA is

    *c /c c:\ra\d32sys.bat *r *m

    this menu option should be limited to only ANSI users and only those connected to the com ports used for telnet... users on dialup modem comports and without ANSI enabled should not see this menu option...


    the RAT file is...

    ==== Begin "d32sys.rat" ====
    LINE01=2
    LINE02=%SOCKHAND
    LINE03=^Kr
    LINE04=RemoteAccess 2.62
    LINE05=%RECNUMB
    LINE06=^Fa
    LINE07=^F3
    LINE08=^Fo
    LINE09=^F_
    LINE10=1
    LINE11=^Kw
    ==== End "d32sys.rat" ====

    ^F and ^K are the actual characters... generally they are entered in DOS editors via CTRL-P CTRL-F and CTRL-P CTRL-K...


    the BAT file is...

    ==== Begin "d32sys.bat" ====
    @echo off
    SETLOCAL
    echo D32SYS.RAT Testing...
    if not exist DOOR32.SYS then goto jump
    echo deleting DOOR32.SYS
    del /q door32.sys
    :jump
    REM SOCKHAND should already be set by NF.BAT before loading RA!
    echo SOCKHAND=%SOCKHAND%
    set RECNUMB=%1
    echo RECNUMB=%RECNUMB%
    echo:
    REM doing this for windows is really nasty :(
    for /f "delims=" %%x in (D32SYS.) do set %%x
    echo %LINE01% >> DOOR32.SYS
    echo %SOCKHAND% >> DOOR32.SYS
    echo %LINE03% >> DOOR32.SYS
    echo %LINE04% >> DOOR32.SYS
    echo %RECNUMB% >> DOOR32.SYS
    echo %LINE06% >> DOOR32.SYS
    echo %LINE07% >> DOOR32.SYS
    echo %LINE08% >> DOOR32.SYS
    echo %LINE09% >> DOOR32.SYS
    echo %LINE10% >> DOOR32.SYS
    echo %LINE11% >> DOOR32.SYS
    type DOOR32.SYS
    echo:
    echo Returning to RemoteAccess...
    ENDLOCAL
    ==== End "d32sys.bat" ====


    only three items need to be hardcoded for this to work properly... everything else is set in the RAT file so that the values are correct for each individual user...

    one possible problem may be the user's security level being passed... some systems only allow for security levels 0 thru 255 while others, like RA, allow for 0 through 64000... if this does cause a problem, the only suggestion i have
    is to adjust one's security levels in RA to be within 0 through 255...


    the d32sys.bat can be named anything... i would continue to use the d32sys.rat file, though... the only change in d32sys.bat would be to change the "type door32.sys" line to execute the door needing door32.sys...

    eg:

    RA menu line
    *c /c c:\ra\d32sys.bat *r lord *m

    and in d32sys.bat replace the one line "type door32.sys" with something like "c:\bbslink\bbslink.exe %2"...

    if bbslink.exe needs the socket handle, pass it using %SOCKHAND% as in

    c:\bbslink\bbslink.exe %2 %SOCKHAND%


    now i wait for someone else to test it all together and report success or not ;) O:)


    FWIW: if someone wants to run door32.sys doors with dialup modem nodes, some more changes will be required to fix the first line of the door32.sys file from
    the hardcoded value of 2 for telnet... i won't do that for now but it will take
    some additional .BAT magic similar to how we set SOCKHAND before starting RA ;)

    )\/(ark

    ... I generally avoid temptation unless I can't resist it.
    ---
    * Origin: (1:3634/12.73)
  • From Dennis Ayala@1:135/301 to mark lewis on Mon Oct 26 15:18:04 2015

    Hello mark!

    26 Oct 15 13:47, you wrote to me:


    24 Oct 15 16:03, you wrote to me:

    Let me know if you can achieve this.

    i have been able to do this and perform limited testing on a vista
    box... i do not have RA installed on winwhatever... i do not have
    telsrv or gamesrv installed, either... the testing was done by taking
    the resulting d32sys file generated by RA and the .bat file over to
    the vista machine... then i simply ran the .bat in a command prompt
    window to generate the door32.sys file...

    i had to change the way i can do it on OS/2 with 4DOS... instead it
    has to be done in a very ugly way which requires changes the RAT
    file... as noted previously, SOCKHAND should be set in NF.BAT using
    the modified gamesrv command line and the modified NF.BAT i posted in
    a previous message...


    the menu command line in RA is

    *c /c c:\ra\d32sys.bat *r *m

    this menu option should be limited to only ANSI users and only those connected to the com ports used for telnet... users on dialup modem comports and without ANSI enabled should not see this menu option...


    the RAT file is...

    ==== Begin "d32sys.rat" ====
    LINE01=2
    LINE02=%SOCKHAND
    LINE03=^Kr
    LINE04=RemoteAccess 2.62
    LINE05=%RECNUMB
    LINE06=^Fa
    LINE07=^F3
    LINE08=^Fo
    LINE09=^F_
    LINE10=1
    LINE11=^Kw
    ==== End "d32sys.rat" ====

    ^F and ^K are the actual characters... generally they are entered in
    DOS editors via CTRL-P CTRL-F and CTRL-P CTRL-K...


    the BAT file is...

    ==== Begin "d32sys.bat" ====
    @echo off
    SETLOCAL
    echo D32SYS.RAT Testing...
    if not exist DOOR32.SYS then goto jump
    echo deleting DOOR32.SYS
    del /q door32.sys
    :jump
    REM SOCKHAND should already be set by NF.BAT before loading RA!
    echo SOCKHAND=%SOCKHAND%
    set RECNUMB=%1
    echo RECNUMB=%RECNUMB%
    echo:
    REM doing this for windows is really nasty :(
    for /f "delims=" %%x in (D32SYS.) do set %%x
    echo %LINE01% >> DOOR32.SYS
    echo %SOCKHAND% >> DOOR32.SYS
    echo %LINE03% >> DOOR32.SYS
    echo %LINE04% >> DOOR32.SYS
    echo %RECNUMB% >> DOOR32.SYS
    echo %LINE06% >> DOOR32.SYS
    echo %LINE07% >> DOOR32.SYS
    echo %LINE08% >> DOOR32.SYS
    echo %LINE09% >> DOOR32.SYS
    echo %LINE10% >> DOOR32.SYS
    echo %LINE11% >> DOOR32.SYS
    type DOOR32.SYS
    echo:
    echo Returning to RemoteAccess...
    ENDLOCAL
    ==== End "d32sys.bat" ====

    Excellent work man!

    only three items need to be hardcoded for this to work properly... everything else is set in the RAT file so that the values are correct
    for each individual user...

    one possible problem may be the user's security level being passed...
    some systems only allow for security levels 0 thru 255 while others,
    like RA, allow for 0 through 64000... if this does cause a problem,
    the only suggestion i have is to adjust one's security levels in RA to
    be within 0 through 255...


    the d32sys.bat can be named anything... i would continue to use the d32sys.rat file, though... the only change in d32sys.bat would be to change the "type door32.sys" line to execute the door needing door32.sys...

    eg:

    RA menu line
    *c /c c:\ra\d32sys.bat *r lord *m

    and in d32sys.bat replace the one line "type door32.sys" with
    something like "c:\bbslink\bbslink.exe %2"...

    if bbslink.exe needs the socket handle, pass it using %SOCKHAND% as in

    c:\bbslink\bbslink.exe %2 %SOCKHAND%

    BBSLink for Windows is based on R&M Telnet door so all it needs is to read the DOOR32.sys and the door code.

    now i wait for someone else to test it all together and report success
    or not ;) O:)

    Great job.

    FWIW: if someone wants to run door32.sys doors with dialup modem
    nodes, some more changes will be required to fix the first line of the door32.sys file from the hardcoded value of 2 for telnet... i won't do that for now but it will take some additional .BAT magic similar to
    how we set SOCKHAND before starting RA ;)

    Now the hardest part. In order to help our frind Manuel Adorni, we need to translate all this to Spanish. ;)

    Dennis


    ---
    * Origin: The Wall Caribbean & Central American Hub (1:135/301)
  • From Manuel Adorni@4:902/27 to Dennis Ayala on Mon Oct 26 19:39:26 2015
    ¡Hola Dennis!

    El Lunes 26 Octubre 2015 a las 15:18, Dennis Ayala escribió a mark lewis:

    Now the hardest part. In order to help our frind Manuel Adorni, we
    need to translate all this to Spanish. ;)

    My english is bad... but i try to comprend :)

    ¡Saludos!
    -=Momia=-

    --- GoldED+/W32 1.1.5-30512
    * Origin: Momia BBS - telnet://momiabbs.no-ip.info (4:902/27)
  • From mark lewis@1:3634/12.73 to Dennis Ayala on Mon Oct 26 21:40:38 2015

    26 Oct 15 15:18, you wrote to me:

    [...]

    Excellent work man!

    thank you, sir :)

    [...]

    and in d32sys.bat replace the one line "type door32.sys" with
    something like "c:\bbslink\bbslink.exe %2"...

    if bbslink.exe needs the socket handle, pass it using %SOCKHAND% as in

    c:\bbslink\bbslink.exe %2 %SOCKHAND%

    BBSLink for Windows is based on R&M Telnet door so all it needs is to
    read the DOOR32.sys and the door code.

    i thought that would be the case...

    now i wait for someone else to test it all together and report
    success or not ;) O:)

    Great job.

    :)

    FWIW: if someone wants to run door32.sys doors with dialup modem
    nodes, some more changes will be required to fix the first line of
    the door32.sys file from the hardcoded value of 2 for telnet... i
    won't do that for now but it will take some additional .BAT magic
    similar to how we set SOCKHAND before starting RA ;)

    Now the hardest part. In order to help our frind Manuel Adorni, we
    need to translate all this to Spanish. ;)

    i'll have to let someone else do that... i only have google translate and i know how badly it mangles things :)

    @Manuel, have you been able to keep up and understand my postings?

    )\/(ark

    ... It's a dog-eat-dog world and I'm wearing MilkBone shorts.
    ---
    * Origin: (1:3634/12.73)
  • From Mike Ehlert@1:3634/12 to mark lewis on Tue Oct 27 17:37:00 2015
    the command line in GAMESRV would look like

    c:\gamesrv\nf.bat *H /n*N /h*H c:\ra\ra.exe -n*N -B57600


    and NF.BAT would look like this

    ===== begin NF.BAT =====
    @echo off
    REM NF.BAT for NetFoss
    REM capture the socket handle to SOCKHAND
    set SOCKHAND=%1
    shift
    REM now process as normal before the above 2 lines were
    added
    c:\gamesrv\netfoss.com %1
    if errorlevel 1 goto end
    c:\gamesrv\netcom.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
    c:\gamesrv\netfoss.com /u
    :end

    This could also be done using Net2BBS, Which is the small footprint telnet server that comes with NetFoss. Net2BBS uses the *H macro to pass the socket handle to NF.BAT

    Regards, Mike
    NetFoss author - mike@pcmicro.com


    * Origin: (1:3634/12)
  • From mark lewis@1:3634/12.73 to Mike Ehlert on Tue Oct 27 19:27:58 2015

    27 Oct 15 17:37, you wrote to me:

    This could also be done using Net2BBS, Which is the small footprint
    telnet server that comes with NetFoss. Net2BBS uses the *H macro to
    pass the socket handle to NF.BAT

    ah! i see you came and found it! great! i'll still try to get the documentation
    over to you via email... it is just taking me a little longer than desired...

    )\/(ark

    ... Among the porcupines, rape is unknown.
    ---
    * Origin: (1:3634/12.73)
  • From Jim Haight@1:322/757 to mark lewis on Wed Oct 28 18:43:45 2015
    Re: DOOR32.SYS

    according to the 2000 revision 1 specification of DOOR32.SYS, three bbses supported it... Mystic, EleBBS, and Synchronet... i'm sure that others also support it these days... especially if they support telnet connections direct without needing a shim providing a virtual modem...

    And WWIV 5.0

    ╓─╖ ╥ ╔═╗ ╖ ╓ ╓─╖ ╔═╗ ╔═╗ ╔═╗ ╒╦╕ ╓─╖ ╖ ╓ ╔═╗ ╥ Alpha Centauri BBS
    ╟─╢ ║ ╟─╨ ╟─╢ ╟─╢ ║ ╟─ ║ ╙╖ ║ ╟─╢ ║ ║ ╟─╙╖ ║ Cape Cod Massachusetts
    ╨ ╨ ╨ ╨ ╨ ╨ ╨ ╨ ╚═╝ ╚═╝ ╨ ╜ ╨ ╨ ╨ ╚═╝ ╜ ╨ ╨ acentauribbs.no-ip.org

    --- Virtual Advanced Ver 2 for DOS
    * Origin: Alpha Centauri BBS (1:322/757)
  • From mark lewis@1:3634/12.73 to Jim Haight on Wed Oct 28 20:35:10 2015

    28 Oct 15 18:43, you wrote to me:

    Re: DOOR32.SYS

    according to the 2000 revision 1 specification of DOOR32.SYS, three bbses
    supported it... Mystic, EleBBS, and Synchronet... i'm sure that others
    also support it these days... especially if they support telnet
    connections direct without needing a shim providing a virtual modem...

    And WWIV 5.0

    it wasn't listed in the docs from 2000 that i found... yes, i'm sure there are others now that support it :)

    )\/(ark

    ... If it's good they will stop making it.
    ---
    * Origin: (1:3634/12.73)