Re: Q: Informix NET and winsock
Posted in 1996
Margus V'li wrote:
>
> hi there.
>
> I've got I-NET for Windows version 5.01.wf1 and problem occurs with
> winsock dll. Function named getservbyname gives an error WSANO_DATA which
> means that the name queued is valid but there's no record of requested type.
> the getservname routine is supposed to get service information corresponding
> to the service name and protocol used. Don't know why i-net needs that, anyone?
I-Net needs the service to be able to connect to the server. The service is some
kind of agreement between clients and the server on which channel to communicate.
That means both must be 'tuned' on the same service (e.g. sqlexec 1540/tcp).
>
> Couln't find anything specifying the library either save that it's a BSD
> socket API for windows and requires windows version 4.0.
>
> regards,
> margus v'li
> --
> Passiivne suitsetaja.
The two things you need are the IP-Address of the server (be sure you can ping
it from your PC) and the service, configured in your sqlhosts-file on the server.
The entry should look like:
server_net ontlitcp hostname sqlexecor
server_net onsoctcp hostname sqlexec
Of course you can use any valid servicename, beside sqlexec.
Sincerely,
Roland