From: "Juhani Pirttilahti" <juhani.pirttilahti@mbnet.fi>
To: linux-msdos@vger.kernel.org
Subject: Re: Telnet to serial port
Date: Sat, 10 Jul 2004 11:29:10 +0300 [thread overview]
Message-ID: <200407101129100240.0059FEC0@smtp.ebaana.net> (raw)
In-Reply-To: 200407091812480819.01F10C23@smtp.ebaana.net
On 9.7.2004 at 9:28 Ryan Underwood wrote:
>On Fri, Jul 09, 2004 at 02:13:04PM +0300, Juhani Pirttilahti wrote:
>> I've got to run PCBoard under dosemu, works like a charm in local mode.
>> There is still a problem. Lets say I want to run 5 instances of dosemu +
>pcboard, I need then
>> a telnet server, which maintains connections to these 5 instances.
>
>Sure. standard telnet/ssh will do this. Unless you are trying to
>multiplex all these connections onto one listening telnet port. Then you
>will
>have to write your own "hub" program to direct the user to the right
>node.
>
>To me, it makes more sense to have each listening node associated
>with a particular listening IP port (:2323, :2324, :2325, :2326 ... ).
>Then it is simple. Create a sh script which starts dosemu and the BBS
>in the "already connected" mode, like if a frontend mailer such as
>FrontDoor was used to pass control to the BBS. Then have that script
>file executed as a login script when a user telnets in. You can use
>exactly the same virtual com port for each node, then you only need one
>port configured as virtual (COM1). Every time you run a new dosemu,
>COM1 is corresponding to the telnet connection for _that_ dosemu. So
>you can have e.g. 16 dosemus running at once for all your 16 nodes, all
>configured to run on COM1, and each COM1 a particular node is using,
>corresponds to the telnet connection which initiated the DOS session
>that the BBS instance runs in.
>
>If that is confusing, just ask for clarification. I use this method to
>run DOS doors through Synchronet (for Unix). The idea is the same. One
>thing that may confuse you is that there is no modem emulator (like
>vmodem for OS/2), only a COM/FOSSIL emulator, which takes
>console/terminal I/O on the outside and redirects it to appear as if it
>was received on a COM port (or from FOSSIL driver) on the inside of the
>DOS box. The virtual COM port on the DOS box corresponds to no physical
>COM port, only to the I/O from the outside. It also has nothing in
>common with any other virtual COM ports in any other concurrently
>running DOS boxes. This is why you can just set COM1 for every PCBoard
>node and it will work fine if executed as if the COM port has a modem on
>it that is already connected. What you _cannot_ do is run PCBoard and
>have it "answer the phone". That would require a modem emulator which
>we do not have (and don't really need).
Ah, fine, this idea is somewhat better and sounds like that it will be much
easier to build. So, If I write "hub" script, it would have to do these things:
1) Find a free node, (check if no lockfile exist) (for example, 2 is free)
2) Create a lock file for this session (lock.2 for node 2)
3) Launch dosemu with PCBoard using node2.bat (it contains node number
environment variable and command line parameters)
4) Finally, when session is ended, we can delete lock file.
I need to know how do I launch dosemu? How telnet connection will go to COM1...?
And I have to add $_com1 = "virtual" to dosemu.conf, right?
next prev parent reply other threads:[~2004-07-10 8:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-09 11:13 Telnet to serial port Juhani Pirttilahti
2004-07-09 14:28 ` Ryan Underwood
[not found] ` <200407091812480819.01F10C23@smtp.ebaana.net>
2004-07-10 8:29 ` Juhani Pirttilahti [this message]
2004-07-11 23:58 ` Ryan Underwood
2004-07-15 23:19 ` Juhani Pirttilahti
2004-07-17 22:23 ` Ryan Underwood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200407101129100240.0059FEC0@smtp.ebaana.net \
--to=juhani.pirttilahti@mbnet.fi \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox