Added the file transfer messages routine for the server side code.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@460 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfb/SMsgHandler.h b/rfb/SMsgHandler.h
index f326ad4..148403f 100644
--- a/rfb/SMsgHandler.h
+++ b/rfb/SMsgHandler.h
@@ -56,6 +56,8 @@
// specially for this purpose.
virtual void supportsLocalCursor();
+ virtual bool processFTMsg(int type) = 0;
+
ConnParams cp;
};
}
diff --git a/rfb/SMsgReaderV3.cxx b/rfb/SMsgReaderV3.cxx
index e5ae744..0ce1bca 100644
--- a/rfb/SMsgReaderV3.cxx
+++ b/rfb/SMsgReaderV3.cxx
@@ -50,6 +50,18 @@
case msgTypeKeyEvent: readKeyEvent(); break;
case msgTypePointerEvent: readPointerEvent(); break;
case msgTypeClientCutText: readClientCutText(); break;
+
+ case msgTypeFileListRequest:
+ case msgTypeFileDownloadRequest:
+ case msgTypeFileUploadRequest:
+ case msgTypeFileUploadData:
+ case msgTypeFileDownloadCancel:
+ case msgTypeFileUploadFailed:
+ case msgTypeFileCreateDirRequest:
+ case msgTypeFileDirSizeRequest:
+ case msgTypeFileRenameRequest:
+ case msgTypeFileDeleteRequest: handler->processFTMsg(msgType); break;
+
default:
fprintf(stderr, "unknown message type %d\n", msgType);
throw Exception("unknown message type");
diff --git a/rfb/VNCSConnectionST.cxx b/rfb/VNCSConnectionST.cxx
index 41e4eb3..8b6adda 100644
--- a/rfb/VNCSConnectionST.cxx
+++ b/rfb/VNCSConnectionST.cxx
@@ -699,4 +699,9 @@
if ((accessRights & (AccessPtrEvents | AccessKeyEvents | AccessView)) == 0x0000)
return 2;
return 4;
+}
+
+bool VNCSConnectionST::processFTMsg(int type)
+{
+ return false;
}
\ No newline at end of file
diff --git a/rfb/VNCSConnectionST.h b/rfb/VNCSConnectionST.h
index b81c3a5..7813c04 100644
--- a/rfb/VNCSConnectionST.h
+++ b/rfb/VNCSConnectionST.h
@@ -108,6 +108,8 @@
void setStatus(int status);
int getStatus();
+ bool processFTMsg(int type);
+
private:
// SConnection callbacks