socket problems

socket problems

Post by Kent Mill » Tue, 17 Feb 1998 04:00:00



I am trying to connect to Informix 7.2 using ODBC from an NT server with
Informix-CLI 2.5.  When I try to connect, I receive an error number -908.
I reference the error number and found the following messages:
Attempt to connect to database server (servername,
conerr=connection-error-number, oserr=system-error-number) failed.

After a little investigation, I discovered that the socket that I specified
in the etc/services file is not active.  Can anyone tell me how to activite
the socket and tell Informix to listen to it?  Thanks.

Kent Mills

 
 
 

socket problems

Post by Karl Youn » Tue, 17 Feb 1998 04:00:00



> After a little investigation, I discovered that the socket that I specified
> in the etc/services file is not active.  Can anyone tell me how to activite
> the socket and tell Informix to listen to it?  Thanks.

> Kent Mills


Kent

YOu need to add a line to the /etc/inetd.conf file as well as the
/etc/services file to tell inetd what program will handle the
conetcion.  After changing the files, send a kill -1 to the inetd
process so it rereads them.

-karl

 
 
 

1. Interesting Sockets Problem (between generic sockets client and Sybase?)

Hi,

I have a UNIX sockets client application making a connection to a sockets
server that I have also written. For the most part things have been
working great.

However, when this sockets client shared library that I have written is
brought into an application that also makes a connection to Sybase
problems occur. The problem is that the first time we make a connection
to our sockets server everything works OK; however, the next time we make
a connection to our sockets server application the host address
information is that of the host where the Sybase server is. If there is a
delay (say a sleep of 1 second) everthing works as expected.

The logic goes something like:

        1. Establish connection to Sybase.

        2. Query Sybase (the connection is left open).

        3. Establish connection to my sockets server. Build and retain
           local "struct  hostent" to remember information for remote
           host.
        4. Exchange data w/ sockets server.

        5. Close connection to my sockets server.

        6. Query Sybase (the connection is left open).

        7. Establish connection to my sockets server using retained
           local "struct hostent".

Note: That if a sleep of 1 second is performed between steps 6 and 7
everything works OK. If a sleep is not performed then the connection in
step 7 is attempted against the host that the Sybase server is on. NOT
WHAT WAS ATTENDED.

I am developing on HP-UX on an HP9000.

Anyone have any ideas on what is going on here??? HELP!!

Thanks!

Jim Lundell,
3M

Opinions expressed herein are my own and may not represent those of 3M.

2. 24-bit colour in X11

3. socket help and other sockets problems !?!?

4. Crash when starting kde

5. ISDN Router problem/socket problem

6. question on hosts.equiv

7. Java 1.3 socket problem in 420R with Solaris 5.7

8. Which IPs address should I give???

9. FTP and Data socket problem

10. socket problem in Solaris

11. Socket problems

12. AF_INET socket problem

13. Socket problem