Mail Archives: djgpp/2011/07/12/17:45:40
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f
|
From: | Rugxulo <rugxulo AT gmail DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Pipe()
|
Date: | Tue, 12 Jul 2011 14:15:37 -0700 (PDT)
|
Organization: | http://groups.google.com
|
Lines: | 32
|
Message-ID: | <d87c0a0f-09dd-4f0d-a175-78399d1f4ccb@g12g2000yqd.googlegroups.com>
|
References: | <639f9631-f9d6-42b8-bf70-f943afe5afa8 AT n28g2000vbs DOT googlegroups DOT com>
|
NNTP-Posting-Host: | 65.13.115.246
|
Mime-Version: | 1.0
|
X-Trace: | posting.google.com 1310506255 30949 127.0.0.1 (12 Jul 2011 21:30:55 GMT)
|
X-Complaints-To: | groups-abuse AT google DOT com
|
NNTP-Posting-Date: | Tue, 12 Jul 2011 21:30:55 +0000 (UTC)
|
Complaints-To: | groups-abuse AT google DOT com
|
Injection-Info: | g12g2000yqd.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
|
User-Agent: | G2/1.0
|
X-Google-Web-Client: | true
|
X-Google-Header-Order: | UHALERCNK
|
X-HTTP-UserAgent: | Opera/9.80 (Windows NT 5.1; U; en) Presto/2.9.168 Version/11.50,gzip(gfe)
|
Bytes: | 2481
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id p6CLj2gk031027
|
Reply-To: | djgpp AT delorie DOT com
|
Hi,
On Jul 12, 6:30 am, Georg <dos DOT DOT DOT AT googlemail DOT com> wrote:
>
> I am trying to port a Linux program to DOS using DJGPP. This program
> uses pipe() to spawn another program in a new daemon which listens on
> the tcp/ip socket for commands from the main program.(using the local
> ip address of the PC)
There have been various DOS networking commands ported over the years.
Search for an existing version (e.g. Watt-32 or mTCP) before giving
up. Perhaps someone else has already tried.
> The pipe() function of GCC/DJGPP tells the main program that the
> daemon has been started OK. But when the main program tries to send a
> command via the socket inferface it fails.
>
> I guess this is caused since both programs are not running at the same
> time when run with DOS.
>
> Is there a way to get this to run with DJGPP somehow?
DR-DOS 7.03 is still commercially sold ($35). That may not be the best
answer, but it's what comes to mind. (There are other commercial DOS
variants, of course, even Win9x may work, who knows. I don't claim to
have tested them all.)
Just saying, keep an eye out, do some searching, think about what
exactly you want to do, what your target requirements are, licensing,
what's easiest, what's best, cost, etc.
Keep us posted!! ;-)
- Raw text -