资 源 简 介
在linux下c语言获取本机ip地址的函数,解除了只能获取127.0.0.1的bug.获得的是大端的4字节的ip地址,不是17字节的字符串地址.本人项目中已经在使用了.-In linux under c language to obtain the local ip address of the function, the lifting of access to 127.0.0.1 only the bug. Access to the big 4-byte ip address, instead of 17 bytes of the string address. I projects already in use.