Re: [CN] HW2 關於RRQ和WRQ的ERROR問題

看板PangSir作者 (細雨雙羊湖)時間14年前 (2010/05/14 14:16), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/3 (看更多)
※ 引述《Bingojkt (-Bingo!-)》之銘言: 以下是助教經過討論之後的結果。 : 請問助教 : 1.在RRQ中,假如client端要求一個檔案"1.txt" : 可是"1.txt"在client端已經存在了,應該 : (1)覆寫它 or (2)return "ERROR 6:File already exist"? (1) : 2.在WRQ中,假如client端要求寫入一個檔案"1.txt" : 可是client端並沒有"1.txt"這個檔案,應該 : (1)寫入一個空白檔案 or (2)return "ERROR 1:File not found"? (2) 在這邊助教會將幾種可能的狀況做一點補充, 以下將做一個簡單的說明: RRQ: RRQ Client ──→ Server 1.txt Case 1: Server 無 1.txt → Error 1: File not found Case 2: Client 有 1.txt → (Overwrite) --- WRQ: WRQ Client ──→ Server 1.txt Case 1: Server 有 1.txt → Error 6: File already exists Case 2: Client 無 1.txt → Error 1: File not found TA 楊博翔 -- 「めん、カ。 ん、ルリルごめみんな…」 アキ、還ら -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.30.84

05/14 15:16, , 1F
謝謝助教!!!!
05/14 15:16, 1F
文章代碼(AID): #1BxEhCql (PangSir)
文章代碼(AID): #1BxEhCql (PangSir)