Skip to content

unix下网络编程学习开发,参考书籍:UNIX Network Programming Volume 1, Third Edition: The Sockets Networking API

Notifications You must be signed in to change notification settings

SeeDeer/unix_network_programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNIX Network Programming

快速入门

参考文件 unpv13e/README

工程示例

常见问题

  • 编译错误
    inet_ntop.c: In function ‘inet_ntop’:
    inet_ntop.c:60:9: error: argument ‘size’ doesn’t match prototype
      size_t size;
            ^
    In file included from inet_ntop.c:27:0:
    /usr/include/arpa/inet.h:64:20: error: prototype declaration
    extern const char *inet_ntop (int __af, const void *__restrict __cp,
                        ^
    <内置>: recipe for target 'inet_ntop.o' failed
    make: *** [inet_ntop.o] Error 1
    
    • 解决方法 unpv13e/libfree/inet_ntop.c 文件中所有头文件新增如下宏定义 #define size_t socklen_t

About

unix下网络编程学习开发,参考书籍:UNIX Network Programming Volume 1, Third Edition: The Sockets Networking API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published