In COBOL, for the TCP/IP socket-to-socket calls, we usually use the destination IP address and port number to connect to the desitination system. I would like to know, in COBOL TCP/IP socket-to-socket calls whether we can use the DNS host name to connect to the destination system instead of using the IP address and port number?
Any feedback on this topic is greatly appreciated!
This topic has been locked.
1 reply Latest Post - 2012-05-14T15:48:56Z by infocat
Pinned topic TCP/IP Socket to Socket
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-05-14T15:48:56Z at 2012-05-14T15:48:56Z by infocat
infocat 060000PG7M8 PostsACCEPTED ANSWER
Re: TCP/IP Socket to Socket2012-05-14T15:48:56Z in response to SystemAdminCheck out the GETHOSTBYNAME function of EZASOKET:
Again, I've not used it myself, and it looks a bit convoluted, but...