From: dminer@mcs213a.cs.umr.edu (Dan Miner) Subject: server/client ideas: Outline wanted. Date: 4 Jun 1992 17:05:02 GMT
I have been watching Xwindowms and MGR being
ported. There is a server. There is a client.
Correct if I am wrong:
Server is a process (first process to be run?) that
basically forks (or spawn?) of itself to start other
process (not itselt here).
Client is the resulting process that performs a
function that is subject to the ablity of the server. The
input and output are reported to the server (how??).
I know all this is a little fuzzy but that is the
best I can come up with at this hour. :)
I downloaded the sources of MGR and have been looking at
it. I see that is too is a server. But I can't see how
1) It can start other processes than itself.
2) How does a server "capture" the output and
input of a client?
3) Manages all the processes. They are all
running at the same time. *confusion*
I will be the first to admit that I don't know
much about Unix OS(es). I come from the DOS and Commodore
worlds.
I have been playing with fork() and it is interesting.
I have NO programmer's guides/references. Nor is there any
man pages for the kernel routines. Luckly, I have access to
a commerical 4.3 BSD that has many man pages.... So? What am I
getting at? Could someone explain what is going on under the
hood of these servers? I am really interested how a server
can obtain the input and output of another process.. ???
Thanks.
Dan (drowning) Miner
-- ========================================================================= Dan Miner email: dminer@cs.umr.edu (prefered) Computer Science S101908@UMRVMA.BITNET