#: 20857 S12/OS9/68000 (OSK)
25-Mar-95 04:19:26
Sb: #OS-9 Networking
Fm: Niels Peter Bogholm 100566,2262
To: all,
Hi os9-experts,
I (would like to) have a master-server who waits for connectionrequests and
then after reading some info "gives" the socket-fd to a slave-server which will
continue communicating with the client. I can't do dup+close+fork cause the
slave-serves have to be started at boot-time, but I certainly can ask some
questions:
Does anybody know, if there's an "official" way for more processes to share
global(!) filedesc (socketdesc) ? It's easy to get process A's global-fd from
it's local-fd (using F$FindPD and the pathdesc-structure) but how can process B
open a path knowing the global-fd# (well it's possible to open a dummy-path,
get procdesc table with F$GrpDBT and change it - but 1) MW says DON'T and 2) if
internal structures change this wouldn't work..)
Does anybody know, why MW didn't implement a true unix-fork ? From my point of
view it would be quite easy (os9 shares code-segment so it just have to create
a new processdesc and copy the old processes datasegment..) and it certainly
would make it more easy to write portable code.
Thanks for any answers,
Niels, Munich.
There is 1 Reply.
|