登录
首页 » Linux Network » 在linux下c语言获取本机ip地址的函数,解除了只能获取127.0.0.1的bug.获得的是大端的4字节的ip地址,不是17字节的字符串地址.本人项目中已经在...

在linux下c语言获取本机ip地址的函数,解除了只能获取127.0.0.1的bug.获得的是大端的4字节的ip地址,不是17字节的字符串地址.本人项目中已经在...

于 2022-07-13 发布 文件大小:944.00 B
0 141
下载积分: 2 下载次数: 1

代码说明:

在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.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 一个从网络上自动下载文件的自由工具,支持HTTP和FTP协议,可以使用HTTP代理....
    一个从网络上自动下载文件的自由工具,支持HTTP和FTP协议,可以使用HTTP代理.-One from the network to automatically download files free tools, to support the HTTP and FTP protocol, you can use the HTTP proxy.
    2023-05-23 04:20:03下载
    积分:1
  • 一个很好的语音通信软件,用vc编写的源代码,调试过,绝对可用...
    一个很好的语音通信软件,用vc编写的源代码,调试过,绝对可用-a good voice communications software, used vc prepared by the source code, debugger that can be absolute
    2022-03-23 15:09:25下载
    积分:1
  • Net
    Net-Sky ChatServer不同于其他的用PHP,ASP,PERL等脚本语言编写的或其他任何CGI模式的聊天程式,本聊天室程序使用标准C语言开发,独立于任何第三方WEBSERVER而运行,快速,高效,稳定,大容量。程序的设计目标是能在一台普通的PC上同时容纳上万人聊天。经初步测试,完全达标:每个聊天室一道进程,占内存约700K,80人在线时占CPU约0.03% (Pll450)。程序启动即将所有模版一次性载入内存,最大限度减少硬盘的I/O操作(聊天过程没有任何硬盘I/O),最大限度提高性能。这不不并不意味着每次修改配置后要重新启动聊程式,系统提供专门的管理员命令来重载或修改配置,而不须停止或间断服务。(Only For Linux)-Net-Sky ChatServer different from the other with PHP, ASP, PERL scripting languages such as prepared by the CGI or any other mode of chat programs, the chat room using the standard C language development, independent of any third-party WEBSERVER and running fast, efficient, stable, large capacity. The design goal is that it can be an ordinary PC to accommodate 10,000 people chatting. After initial testing, fully standards : each process in a chat room, accounting for about 700K of memory, 80-CPU time for about 0.03% (Pll450). All the forthcoming commencement of proceedings templates included one-time memory, hard disk to minimize the I/O operations (Chat drives the p
    2022-09-20 13:50:03下载
    积分:1
  • The GNU oSIP library is an implementation of SIP
    基于GNU的VoIP SIP协议(RFC3261)实现代码-The GNU oSIP library is an implementation of SIP- rfc3261.
    2022-08-08 20:44:06下载
    积分:1
  • 详细介绍的scull字符设备驱动程序的实现!
    详细介绍的scull字符设备驱动程序的实现!-detailed briefings scull characters Device Driver for achieving!
    2022-08-08 05:06:59下载
    积分:1
  • 很好的论坛php+mysql+linux
    很好的论坛php+mysql+linux-Good forum php&mysql&linux
    2022-08-26 09:49:50下载
    积分:1
  • linux下可以连接并查看交换机当前运行情况的东东,非常小,很好用...
    linux下可以连接并查看交换机当前运行情况的东东,非常小,很好用-linux can connect and view the operation of the switch current Dongdong, very small, very good use
    2022-03-25 20:43:04下载
    积分:1
  • linux下的抓包函数库,支持交叉编译并移植到嵌入式开发平台.
    linux下的抓包函数库,支持交叉编译并移植到嵌入式开发平台.-under linux-capturing Packet libraries, and support for cross compiler transplant embedded development platform.
    2022-03-15 20:04:43下载
    积分:1
  • Linux下多移动机器人服务器端通讯程序
    Linux下多移动机器人服务器端通讯程序-Multiple mobile robots under Linux server-side communication procedures
    2022-10-06 07:55:03下载
    积分:1
  • 网络安全开发包全解一书的源代码,希望对大家有所帮助
    网络安全开发包全解一书的源代码,希望对大家有所帮助-network security solution development kits a whole book of source code, we hope to help
    2022-07-10 23:47:14下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载