nanogui@linuxhacker.org
nanogui@linuxhacker.org
I added the "trying to connect..." message two versions ago
to the client library so that programmers could see potential
client/server connection problems, and better understand the
actual connection interaction. FLNX client programs will
automatically start the Nano-X server, but only after the
GrOpen() fails, which will happen after 10 "trying..." printfs.
The Nano-X server is then started, and GrOpen() called again.
BTW, since 0.89pre6, no sleep statement is necessary between
starting the server and clients. This is in fact why I first put
in the printf statements. If you have a slower system, you
can watch how many "trying..." printfs are necessary for the
client to connect while the server initializes. I've found it's
usually 0, and 1 at the most...
Regards,
Greg
: As L.C. Chang mentioned, the messages are displayed
: BEFORE the nano-X server is active. I will think this is a normal
: situation. Maybe a small shell script, such as test.sh, will be necessary
: to bring up the programs in correct order.
:
: Ray
:
: Alex Holden wrote:
:
: > On Wed, 13 Dec 2000, LC. Chang wrote:
: > > My program shows the following message everytime
: > > before bringing up nano-X. Is it something wrong?
: > > nxclient: retry connect attempt 1
: >
: > What the messages mean are that the client tried to connect to the
: > server and failed- there's a retry loop in client.c so that it tries
: > multiple times before giving up. Do the programs actually start okay
: > after that, or do they give up trying and exit? If the latter, I would
: > suspect that either the nano-X server is not running, or the
/tmp/.nano-X
: > file has the wrong permissions (this could happen if you start the
server
: > as root). If it does succeed after a number of attempts, are you by any
: > chance trying to start your program immediately after the server in a
: > script? If so, add a small delay between the starting of the server and
: > the starting of the client in order to give the server a chance to get
: > started up properly before clients start trying to connect.
: >
: > --
: > ------- Alex Holden -------
: > http://www.linuxhacker.org/
: > http://www.robogeeks.org/
: >
: > ---------------------------------------------------------------------
: > To unsubscribe, e-mail: nanogui-unsubscribe@linuxhacker.org
: > For additional commands, e-mail: nanogui-help@linuxhacker.org
:
:
----------------------------------------------------------------------------
----
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: nanogui-unsubscribe@linuxhacker.org
: For additional commands, e-mail: nanogui-help@linuxhacker.org
nanogui@linuxhacker.org