Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
socket=sOpen() ;Connect to host, using port number 9000 for this application ;Created a line in the services file in Winnt called CheckProc Connection=sConnect(socket,"18.104.22.168","CheckProc") ;Check to see if the connection is valid to host err=wxGetLastErr() msg=wxGetErrDesc(err) Message("Winsock Error A %err%",err) If connection == @FALSE Message("Connection Error", "Mainframe Connection Not Present. Please Call the Helpdesk.") GoSub Top EndIf
WSA_E_NO_MORE There is no more data available.I'm not sure exactly what it means. It seems to be trying to look up a service name or something and not finding it.
If you could post the statement you are having problems with we can look at it.
Maybe, if you are using a service name, use the service port number instead?
Also be aware of a very *strong* limitation of the WinSock extender. If you use a name like www.yoohoo.com the DNS server must resolve correctly. This is expected. If you use an ip address like 22.214.171.124 is MUST be properly "reverse DNS served" so that if you try to do a:
ping -a 126.96.36.199the address resolved to a reasonable host name. The WinSock extender cannot communicate with just an ipaddress. The machine it is communicating with MUST be fully recognised by your DNS servers.
It appears the 126.x.x.x range it not a legal Internet address. It could be on a private network, or a result of NAT translations. It is possible a DNS server could be set up to handle it, but it is not likely.
To do a "test" of this, I created a winbatch server program on an NT. I connected just fine. As soon as I switched over to the Unisys, I had a problem. Perhaps I need to edit the host file locally.
The two things that had to be present was the naming of the IP in the hosts file and I had to specify the service port and service name in the services file.
We're running this program on a WindowsNT Workstation 4.0.
Hope this will help others with a similar error.
Article ID: W14443
Filename: Winsock Error 10110 and Specifying Host Name.txt
File Created: 2017:07:28:12:58:55
Last Updated: 2000:03:27:16:44:06