sqlex1 / openserver()

Post Reply
basement_addict
Posts: 78
Joined: Mon Nov 19, 2001 5:20 pm

sqlex1 / openserver()

Post 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
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

sqlex1 / openserver()

Post 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
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

sqlex1 / openserver()

Post by mark »

Or make "sqlex1f" (-DNCGDIRECT) instead of "sqlex1" if you don't need network (multiple machine) support. Then you wouldn't need texisd.
basement_addict
Posts: 78
Joined: Mon Nov 19, 2001 5:20 pm

sqlex1 / openserver()

Post by basement_addict »

ok, I thought texisd started when texis starts.
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

sqlex1 / openserver()

Post 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).
Post Reply