diff options
author | Pierre Ossman <ossman@cendio.se> | 2011-11-07 21:13:54 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2011-11-07 21:13:54 +0000 |
commit | a3ac01ef9ce92ca2ddd31a8a647937235e294f6d (patch) | |
tree | 6f22f0c1dd96df5391950e41786911490992a695 /common/rfb/VNCSConnectionST.h | |
parent | 2aa4b0c49352472baa6c060371497377350a3d43 (diff) | |
download | tigervnc-a3ac01ef9ce92ca2ddd31a8a647937235e294f6d.tar.gz tigervnc-a3ac01ef9ce92ca2ddd31a8a647937235e294f6d.zip |
Clean up the interface for VNCSConnectionST. Entry points are more apparent
and the data flow is now more strictly aimed towards this connection class.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4771 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/VNCSConnectionST.h')
-rw-r--r-- | common/rfb/VNCSConnectionST.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/common/rfb/VNCSConnectionST.h b/common/rfb/VNCSConnectionST.h index abf43838..5a007ee9 100644 --- a/common/rfb/VNCSConnectionST.h +++ b/common/rfb/VNCSConnectionST.h @@ -1,5 +1,5 @@ /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. - * Copyright 2009 Pierre Ossman for Cendio AB + * Copyright 2009-2011 Pierre Ossman for Cendio AB * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -63,14 +63,17 @@ namespace rfb { // Socket if an error occurs, via the close() call. void processMessages(); - void writeFramebufferUpdateOrClose(); + // Called when the underlying pixelbuffer is resized or replaced. void pixelBufferChange(); - void screenLayoutChange(rdr::U16 reason); + + // Wrappers to make these methods "safe" for VNCServerST. + void writeFramebufferUpdateOrClose(); + void screenLayoutChangeOrClose(rdr::U16 reason); void setColourMapEntriesOrClose(int firstColour, int nColours); - void bell(); - void serverCutText(const char *str, int len); - void setDesktopName(const char *name); void setCursorOrClose(); + void bellOrClose(); + void serverCutTextOrClose(const char *str, int len); + void setDesktopNameOrClose(const char *name); // checkIdleTimeout() returns the number of milliseconds left until the // idle timeout expires. If it has expired, the connection is closed and @@ -92,7 +95,6 @@ namespace rfb { bool needRenderedCursor(); network::Socket* getSock() { return sock; } - bool readyForUpdate() { return !requested.is_empty(); } void add_changed(const Region& region) { updates.add_changed(region); } void add_copied(const Region& dest, const Point& delta) { updates.add_copied(dest, delta); @@ -155,12 +157,17 @@ namespace rfb { void writeFramebufferUpdate(); void writeRenderedCursorRect(); + void screenLayoutChange(rdr::U16 reason); void setColourMapEntries(int firstColour, int nColours); void setCursor(); + void setDesktopName(const char *name); void setSocketTimeouts(); network::Socket* sock; CharArray peerEndpoint; + + bool inProcessMessages; + VNCServerST* server; SimpleUpdateTracker updates; TransImageGetter image_getter; |