请问可以将域名传递给getaddrinfo winsock函数吗? [英] Please can a domain name be passed to getaddrinfo winsock function?
本文介绍了请问可以将域名传递给getaddrinfo winsock函数吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请问可以将域名传递给getaddrinfo winsock函数吗?
这是我第一次在互联网上托管客户端/服务器应用程序的服务器端.我习惯于将诸如MDComputer之类的计算机名称传递给getaddrinfo函数.现在,我即将在Internet上托管应用程序,我想知道将域名传递给getaddrinfo函数是否没有问题.
Please can a domain name be passed to getaddrinfo winsock function?
This is the first time that I will be hosting a server end of a client/server application on the internet. I am used to passing computer names like MDComputer to getaddrinfo function. Now that I am about to host the application on the internet I wish to know if there is no problem with passing a domain name to getaddrinfo function.
推荐答案
是的能够使用getaddrinfo()
在Internet上完成工作.例如,使用HTTP端口80的"google.com"进行尝试.
Yes you should be able to use getaddrinfo()
to do the job on the internet. Lets try it for example with ''google.com'' with HTTP port 80.
这篇关于请问可以将域名传递给getaddrinfo winsock函数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文