nanogui: Thread: What is GR_CLIENT for?


[<<] [<] Page 1 of 1 [>] [>>]
Subject: What is GR_CLIENT for?
From: Kaben Nanlohy ####@####.####
Date: 4 Oct 2000 10:38:21 -0000
Message-Id: <Pine.NEB.4.21.0010040320340.25095-100000@kaben.frye.com>

Or rather why does the structure have 'next' and 'previous' fields...

GR_CLIENT holds a client's event chain, and shared-memory speedup stuff
for passing events and commands.  It also seems to be able to keep track
of a list of clients, each with unique IDs (file descriptors?).  I haven't
found code in which such a list is constructed, although GsDropClient() in
srvnet.c takes clients off of the list.

It looks like only one Nano-X client is permitted at the moment?  But this
is a client/server model, so I'm missing something, and I would be
grateful and filled with happiness if anyone can unconfuse me.

Many thanks -- Kaben.

Subject: Re: What is GR_CLIENT for?
From: "Greg Haerr" ####@####.####
Date: 4 Oct 2000 16:23:01 -0000
Message-Id: <06b401c02e1f$a4200680$15320cd0@gregh>

: GR_CLIENT holds a client's event chain, and shared-memory speedup stuff
: for passing events and commands.  It also seems to be able to keep track
: of a list of clients, each with unique IDs (file descriptors?). 

GR_CLIENT is the structure that hold's each client event queue.
root_client is the head of the list.  


 I haven't
: found code in which such a list is constructed, although GsDropClient() in
: srvnet.c takes clients off of the list.

Grepping for GR_CLIENT shows that srvmain.c, function
GsClientAcceptFd builds a client event structure for a new
socket fd.

: 
: It looks like only one Nano-X client is permitted at the moment

No.  GsAcceptClientFd links each new client into the list.

Regards,

Greg


[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.