1. /*阻塞等待客户端连接请求*/
    2. int newfd = -1;
    3. newfd = accept(fd,NULL,NULL);
    4. if(newfd < 0);
    5. {
    6. perror("accept");
    7. exit(1);
    8. }