Topic
1 reply Latest Post - ‏2012-05-14T15:48:56Z by infocat
SystemAdmin
SystemAdmin
403 Posts
ACCEPTED ANSWER

Pinned topic TCP/IP Socket to Socket

‏2012-05-13T13:35:40Z |
Hi,
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!

Thanks!
Updated on 2012-05-14T15:48:56Z at 2012-05-14T15:48:56Z by infocat
  • infocat
    infocat
    8 Posts
    ACCEPTED ANSWER

    Re: TCP/IP Socket to Socket

    ‏2012-05-14T15:48:56Z  in response to SystemAdmin
    Check out the GETHOSTBYNAME function of EZASOKET:

    http://publib.boulder.ibm.com/infocenter/zos/v1r12/index.jsp?topic=%2Fcom.ibm.zos.r12.hala001%2Fcgetnam.htm

    Again, I've not used it myself, and it looks a bit convoluted, but...

    Frank