摘要:
https://blog.csdn.net/hailuoing/article/details/8222359 阅读全文
摘要:
close(fileno(stdin)); dup2(sockfd, fileno(stdin)); close(fileno(stdout)); dup2(sockfd, fileno(stdout)); close(fileno(stderr)); dup2(sockfd, fileno(std 阅读全文