summaryrefslogtreecommitdiffstats
path: root/rfb
diff options
context:
space:
mode:
authorDennis Syrovatsky <dennis@tightvnc.com>2005-11-21 14:40:56 +0000
committerDennis Syrovatsky <dennis@tightvnc.com>2005-11-21 14:40:56 +0000
commit514555be0169e6491a14b92f6c08c889c52878eb (patch)
tree39892c6b6215a1581bec2c61b2996c0d24ae3eca /rfb
parenta7fdeeb80be99f3c34fe977e848ed4b07db71206 (diff)
downloadtigervnc-514555be0169e6491a14b92f6c08c889c52878eb.tar.gz
tigervnc-514555be0169e6491a14b92f6c08c889c52878eb.zip
Added methods for processing file transfer message FileListData.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@408 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'rfb')
-rw-r--r--rfb/CMsgHandler.h2
-rw-r--r--rfb/CMsgReaderV3.cxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/rfb/CMsgHandler.h b/rfb/CMsgHandler.h
index 7a69f145..68e5e861 100644
--- a/rfb/CMsgHandler.h
+++ b/rfb/CMsgHandler.h
@@ -56,6 +56,8 @@ namespace rfb {
virtual void imageRect(const Rect& r, void* pixels);
virtual void copyRect(const Rect& r, int srcX, int srcY);
+ virtual bool processFTMsg(int type) = 0;
+
ConnParams cp;
};
}
diff --git a/rfb/CMsgReaderV3.cxx b/rfb/CMsgReaderV3.cxx
index 59519813..b8242a02 100644
--- a/rfb/CMsgReaderV3.cxx
+++ b/rfb/CMsgReaderV3.cxx
@@ -58,6 +58,8 @@ void CMsgReaderV3::readMsg()
case msgTypeSetColourMapEntries: readSetColourMapEntries(); break;
case msgTypeBell: readBell(); break;
case msgTypeServerCutText: readServerCutText(); break;
+ case msgTypeFileListData:
+ handler->processFTMsg(type); break;
default:
fprintf(stderr, "unknown message type %d\n", type);
throw Exception("unknown message type");