} printf("/n"); if(insertdb(buf[0], buf[1], buf[2], buf[3])) printf("insert into db success!"); } else { perror("read fail"); exit(-1); }// if end here }// for end here tcsetattr(fd, TCSANOW, &oldtio); close(fd); exit(0); } // main end here 更多內容請看Java編程開發手冊 Linux安全應用寶典 Linux防火墻專題,或