摘要: select main() { int sock; FILE *fp; struct fd_set fds; struct timeval timeout={3,0}; //select等待3秒,3秒轮询,要非阻塞就置0 char buffer[256]={0}; //256字节的接收缓冲区 /* 阅读全文
posted @ 2021-05-08 11:42 摸鱼选手LLF 阅读(90) 评论(0) 推荐(0)