net.vncviewer
Class CConn

java.lang.Object
  extended by net.rfb.CMsgHandler
      extended by net.rfb.CConnection
          extended by net.vncviewer.CConn
All Implemented Interfaces:
UserPasswdGetter, OptionsDialogCallback

public class CConn
extends CConnection
implements UserPasswdGetter, OptionsDialogCallback


Field Summary
 
Fields inherited from class net.rfb.CConnection
maxSecTypes, RFBSTATE_INITIALISATION, RFBSTATE_INVALID, RFBSTATE_NORMAL, RFBSTATE_PROTOCOL_VERSION, RFBSTATE_SECURITY, RFBSTATE_SECURITY_RESULT, RFBSTATE_SECURITY_TYPES, RFBSTATE_UNINITIALISED
 
Fields inherited from class net.rfb.CMsgHandler
cp
 
Constructor Summary
CConn(VNCViewer viewer_)
           
 
Method Summary
 void beginRect(int x, int y, int w, int h, int encoding)
           
 void bell()
           
 void close()
           
 void copyRect(int x, int y, int w, int h, int sx, int sy)
           
 void endRect(int x, int y, int w, int h, int encoding)
           
 void fillRect(int x, int y, int w, int h, int p)
           
 void framebufferUpdateEnd()
           
 void framebufferUpdateStart()
           
 CSecurity getCSecurity(int secType)
           
 void getOptions()
           
 boolean getUserPasswd(java.lang.StringBuffer user, java.lang.StringBuffer passwd)
           
 void imageRect(int x, int y, int w, int h, byte[] p, int offset)
           
 boolean init(java.net.Socket sock_, java.lang.String vncServerName, boolean alwaysShowServerDialog)
           
 void refresh()
           
 void serverCutText(java.lang.String str)
           
 void serverInit()
           
 void setColourMapEntries(int firstColour, int nColours, int[] rgbs)
           
 void setCursor(int hotspotX, int hotspotY, int w, int h, byte[] data, byte[] mask)
           
 void setDesktopSize(int w, int h)
           
 void setOptions()
           
 void showInfo()
           
 void showMenu(int x, int y)
           
 void writeClientCutText(java.lang.String str)
           
 void writeKeyEvent(java.awt.Event ev)
           
 void writeKeyEvent(int keysym, boolean down)
           
 void writePointerEvent(java.awt.Event ev)
           
 
Methods inherited from class net.rfb.CConnection
addSecType, authSuccess, getCurrentCSecurity, getInStream, getOutStream, getServerName, initialiseProtocol, initSecTypes, processMsg, reader, setClientSecTypeOrder, setProtocol3_3, setServerName, setShared, setStreams, state, writer
 
Methods inherited from class net.rfb.CMsgHandler
setName, setPixelFormat
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CConn

public CConn(VNCViewer viewer_)
Method Detail

init

public boolean init(java.net.Socket sock_,
                    java.lang.String vncServerName,
                    boolean alwaysShowServerDialog)
             throws java.io.IOException
Throws:
java.io.IOException

getUserPasswd

public boolean getUserPasswd(java.lang.StringBuffer user,
                             java.lang.StringBuffer passwd)
Specified by:
getUserPasswd in interface UserPasswdGetter

getCSecurity

public CSecurity getCSecurity(int secType)
Specified by:
getCSecurity in class CConnection

serverInit

public void serverInit()
Overrides:
serverInit in class CConnection

setDesktopSize

public void setDesktopSize(int w,
                           int h)
Overrides:
setDesktopSize in class CMsgHandler

framebufferUpdateStart

public void framebufferUpdateStart()
Overrides:
framebufferUpdateStart in class CMsgHandler

framebufferUpdateEnd

public void framebufferUpdateEnd()
Overrides:
framebufferUpdateEnd in class CMsgHandler

setColourMapEntries

public void setColourMapEntries(int firstColour,
                                int nColours,
                                int[] rgbs)
Overrides:
setColourMapEntries in class CMsgHandler

bell

public void bell()
Overrides:
bell in class CMsgHandler

serverCutText

public void serverCutText(java.lang.String str)
Overrides:
serverCutText in class CMsgHandler

beginRect

public void beginRect(int x,
                      int y,
                      int w,
                      int h,
                      int encoding)
Overrides:
beginRect in class CMsgHandler

endRect

public void endRect(int x,
                    int y,
                    int w,
                    int h,
                    int encoding)
Overrides:
endRect in class CMsgHandler

fillRect

public void fillRect(int x,
                     int y,
                     int w,
                     int h,
                     int p)
Overrides:
fillRect in class CMsgHandler

imageRect

public void imageRect(int x,
                      int y,
                      int w,
                      int h,
                      byte[] p,
                      int offset)
Overrides:
imageRect in class CMsgHandler

copyRect

public void copyRect(int x,
                     int y,
                     int w,
                     int h,
                     int sx,
                     int sy)
Overrides:
copyRect in class CMsgHandler

setCursor

public void setCursor(int hotspotX,
                      int hotspotY,
                      int w,
                      int h,
                      byte[] data,
                      byte[] mask)
Overrides:
setCursor in class CMsgHandler

close

public void close()

showMenu

public void showMenu(int x,
                     int y)

showInfo

public void showInfo()

refresh

public void refresh()

setOptions

public void setOptions()
Specified by:
setOptions in interface OptionsDialogCallback

getOptions

public void getOptions()
Specified by:
getOptions in interface OptionsDialogCallback

writeClientCutText

public void writeClientCutText(java.lang.String str)

writeKeyEvent

public void writeKeyEvent(int keysym,
                          boolean down)

writeKeyEvent

public void writeKeyEvent(java.awt.Event ev)

writePointerEvent

public void writePointerEvent(java.awt.Event ev)