阅读背景:

使用标准C套接字API判断文本字符串是IPv6地址还是IPv4地址

来源:互联网 

I have a program where an external component passes me a string which contains an IP address. I then need to turn it into a URI. For IPv4 this is easy; I prepend https:// and append /. However, for IPv6 I need to also surround it in brackets [].I have a program where an external component pa




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: