1. ‘close’ was not declared in this scope
没有包含头文件 unistd.h 造成的。加上: #include <unistd.h>
2. 'inet_pton' was not declared in this scope
加上:
#include <sys/socket.h>
#include <netinet/in.h>
#include<arpa/inet.h>
1. ‘close’ was not declared in this scope
没有包含头文件 unistd.h 造成的。加上: #include <unistd.h>
2. 'inet_pton' was not declared in this scope
加上: