Added readBytes and writeBytes methods to file transfers routine
in the winvnc project.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@406 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/winvnc/SFTMsgReader.cxx b/winvnc/SFTMsgReader.cxx
index 14c1c4a..95aca3d 100644
--- a/winvnc/SFTMsgReader.cxx
+++ b/winvnc/SFTMsgReader.cxx
@@ -33,6 +33,12 @@
{
}
+bool
+SFTMsgReader::readBytes(unsigned int dataSize, void *pData)
+{
+ return false;
+}
+
int
SFTMsgReader::readFileListRqst(unsigned char *pFlags, char *pDirName, bool bDirOnly)
{
diff --git a/winvnc/SFTMsgReader.h b/winvnc/SFTMsgReader.h
index 6c5abf3..07fb49f 100644
--- a/winvnc/SFTMsgReader.h
+++ b/winvnc/SFTMsgReader.h
@@ -49,6 +49,9 @@
char *pOldName, char *pNewName);
int readFileDeleteRqst(char *pName);
+
+ private:
+ bool readBytes(unsigned int dataSize, void *pData);
};
}
diff --git a/winvnc/SFTMsgWriter.cxx b/winvnc/SFTMsgWriter.cxx
index bf6e4d1..0ade9ea 100644
--- a/winvnc/SFTMsgWriter.cxx
+++ b/winvnc/SFTMsgWriter.cxx
@@ -34,6 +34,12 @@
}
bool
+SFTMsgWriter::writeBytes(unsigned int dataSize, void *pData)
+{
+ return false;
+}
+
+bool
SFTMsgWriter::writeFileListData(unsigned char flags, rfb::FileInfo *pFileInfo)
{
return false;
diff --git a/winvnc/SFTMsgWriter.h b/winvnc/SFTMsgWriter.h
index 034590f..c19a867 100644
--- a/winvnc/SFTMsgWriter.h
+++ b/winvnc/SFTMsgWriter.h
@@ -42,6 +42,9 @@
bool writeFileDirSizeData(DWORD64 dw64DirSize);
bool writeFileLastRqstFailed(unsigned char lastRequest, unsigned short reasonLen,
char *pReason);
+
+ private:
+ bool writeBytes(unsigned int dataSize, void *pData);
};
}