阅读背景:

使用inet_ntop()和inet_pton() (C编程)转换IP地址输入

来源:互联网 

i'm trying to convert an IP address that's inputted by a user so that I can perform some bitwise operations on it and a address already stored in a structure. My problem is however that when the IP address is converted back the output is always 255.255.255.255. For example a input of 10.0.0.1 or 192.16.2.1 always returns 255.255.255.255.i'm trying to convert an IP address that's inpu




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

分享到: