Commit d7de2c97 authored by 黄大凯's avatar 黄大凯
Browse files

Add initial finalphase

parent 2afa3f88
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ func Save(list *rsync.FileList, module string, prepath string) {
			fmt.Println("key= ", string(k))
			var m FInfo
			proto.Unmarshal(v, &m)
			fmt.Println(m)
			fmt.Println(m.Mtime, m.Size)
		}

		return nil
+8 −0
Original line number Diff line number Diff line
@@ -292,3 +292,11 @@ func exchangeBlock() {
	// Send a empty signature block (no Rolling Checksum & Hash value)
	// Download the data blocks, and write them into a file
}

func FinalPhase(conn net.Conn, data chan byte) {

	binary.Write(conn, binary.LittleEndian, int32(-1))
	ioerror := GetInteger(data)
	fmt.Println(ioerror)

}