Page 1 of 1

sqlex1 / openserver()

Posted: Wed Nov 28, 2001 10:53 am
by basement_addict
re: C example in /morph3/api
I compiled it fine.

No matter what I use for username, password, port I always get this error

"Connection refused In the function: ezclientsock"

happens when calling openserver()

hostname="" (default "localhost")
user=PUBLIC
port=10000
db="path to db"
group="group name"


thanks

sqlex1 / openserver()

Posted: Wed Nov 28, 2001 11:23 am
by Kai
As noted in the sqlex1.c file, the texisd daemon must be running on the host. The sqlex1 example utilizes the Network API, so it makes network calls to the texisd server. See the Texis manual for texisd options; it is typically started as: texisd -o/logs/texisd.log -l

sqlex1 / openserver()

Posted: Wed Nov 28, 2001 11:25 am
by mark
Or make "sqlex1f" (-DNCGDIRECT) instead of "sqlex1" if you don't need network (multiple machine) support. Then you wouldn't need texisd.

sqlex1 / openserver()

Posted: Wed Nov 28, 2001 12:14 pm
by basement_addict
ok, I thought texisd started when texis starts.

sqlex1 / openserver()

Posted: Wed Nov 28, 2001 12:44 pm
by Kai
No, running texis starts the Texis Monitor, which performs some maintenance and housekeeping tasks. texisd must be explicitly started, since it provides network access to database(s).