Mail Archives: djgpp/2001/09/23/09:32:33.1
Hello.
Les Cargill wrote:
> Is there some means of causing a console app to block ( with respect to
> Windows ) and flush the output?
Are you writing a Windows console program or a DOS program?
> I have a program suite which uses a Tcl GUI ( since it's pretty easy )
> as a "client", and a 'C'-written "server" which spits out text via
> stdout using printf/puts/the usual suspects.
>
> DOS , of course, uses temp files for pipes. I was sorta hoping there
> was some way to cause stdin/stdout to act more like Uniz pipes/sockets.
>
> I can use sockets. I figure that's the answer. If so, does the person
> running the app have to have Winsock, or TCP/IP on the machine to run
> this program, or will the Tcl and DJGPP socket layers "find" each
> other? I know the answer in Solaris/SunOS4/Linux/ contexts...
Windows does not provide support for Unix domain sockets AFAIK. So you
will have to use Internet domain sockets, which means you need to have
Winsock with support for TCP/IP installed.
See part of section 22 of the DJGPP FAQ for a list of networking libraries
for DJGPP. You might be better off writing your program with a tool such
as Cygwin, which will integrate better with your Windows program in this
case. The networking libraries for DJGPP don't work very well with
versions of Windows later than '98.
HTH, bye,
--
Richard Dawe
http://www.phekda.freeserve.co.uk/richdawe/
- Raw text -