Subject | Interbase reject... |
---|---|
Author | Marco Süß |
Post date | 2000-12-28T17:49:19Z |
Hello,
by programming with interbase superserver api (under Linux) I get the
error "connection rejected by remote interface" from the Interbase-lib,
if I try to connect a non-local database with following simple C-code:
/* tmpdbname, tmpdbuser, tmpdbpasswd is (char *) */
.
.
.
/* deliver database parameter buffer */
isc_expand_dpb(&dpb,&dpb_length, isc_dpb_user_name, tmpdbuser,
isc_dpb_password,tmpdbpasswd,NULL);
/* connecting db */
if (isc_attach_database(status_vector,strlen(tmpdbname), (char *)
tmpdbname, &db1, 0, NULL)) {
error_exit(); /* prints the errormessage */
}
.
.
.
If I set enviroment-variables ISC_USER etc. there are no problems to
connect the database. my /etc/host.equiv has entries of localhost and
myhostname, DNS and /etc/services are correct installed. Also the
strings tmpdbname etc. contains the correct values. I have used
Superserver 6, Linux with Debian-Distribution.
Have you any hints or ideas, please do not hesitate to contact me
quickly,
Bye Andreas
by programming with interbase superserver api (under Linux) I get the
error "connection rejected by remote interface" from the Interbase-lib,
if I try to connect a non-local database with following simple C-code:
/* tmpdbname, tmpdbuser, tmpdbpasswd is (char *) */
.
.
.
/* deliver database parameter buffer */
isc_expand_dpb(&dpb,&dpb_length, isc_dpb_user_name, tmpdbuser,
isc_dpb_password,tmpdbpasswd,NULL);
/* connecting db */
if (isc_attach_database(status_vector,strlen(tmpdbname), (char *)
tmpdbname, &db1, 0, NULL)) {
error_exit(); /* prints the errormessage */
}
.
.
.
If I set enviroment-variables ISC_USER etc. there are no problems to
connect the database. my /etc/host.equiv has entries of localhost and
myhostname, DNS and /etc/services are correct installed. Also the
strings tmpdbname etc. contains the correct values. I have used
Superserver 6, Linux with Debian-Distribution.
Have you any hints or ideas, please do not hesitate to contact me
quickly,
Bye Andreas