2009-08-05 ソケットのエラーチェック C Linux result = read(sd,NULL,0); if(result<0) perror("socket error");こんなひどいコードが他の処理系で許されるかは不明。