public class VNCClient extends CConnection implements FdInStreamBlockCallback, Closeable
csecurity, maxSecTypes, RFBSTATE_INITIALISATION, RFBSTATE_INVALID, RFBSTATE_NORMAL, RFBSTATE_PROTOCOL_VERSION, RFBSTATE_SECURITY, RFBSTATE_SECURITY_RESULT, RFBSTATE_SECURITY_TYPES, RFBSTATE_UNINITIALISED, securitycp| Modifier and Type | Method and Description |
|---|---|
void |
bell() |
void |
blockCallback() |
void |
clientRedirect(int i,
String s,
String s1) |
void |
close()
Closes the connection
|
static VNCClient |
connect(String address,
int port,
String password,
boolean shareConnection) |
void |
copyRect(Rect r,
int sx,
int sy) |
void |
fillRect(Rect r,
int p) |
void |
framebufferUpdateEnd() |
void |
framebufferUpdateStart() |
Rectangle |
getBounds() |
BufferedImage |
getFrameBuffer(int x,
int y,
int w,
int h) |
PixelFormat |
getPreferredPF() |
void |
imageRect(Rect r,
Object p) |
boolean |
isShuttingDown() |
void |
keyDown(int key)
Tells VNC server to depress key.
|
void |
keyUp(int key)
Tells VNC server to release key.
|
void |
mouseEvent(int buttonState,
int x,
int y)
Tells VNC server to perform a mouse event.
|
static void |
offDebugging() |
static void |
onDebugging() |
void |
processMessages() |
void |
refreshFramebuffer() |
void |
refreshFramebuffer(int x,
int y,
int w,
int h,
boolean incremental)
Sends FramebufferUpdateRequest message to server.
|
void |
serverCutText(String content,
int length) |
void |
serverInit() |
void |
setColourMapEntries(int offset,
int nbColors,
int[] rgb) |
void |
setDesktopSize(int var1,
int var2) |
String |
toString()
Returns the VNCClient Object as a string
|
authSuccess, deleteReaderAndWriter, fence, getInStream, getOutStream, getServerName, getServerPort, initialiseProtocol, initSecTypes, processMsg, reader, setClientSecTypeOrder, setProtocol3_3, setServerName, setServerPort, setShared, setState, setStreams, state, writerbeginRect, endOfContinuousUpdates, endRect, setCursor, setExtendedDesktopSize, setName, setPixelFormatpublic static void onDebugging()
public static void offDebugging()
public static VNCClient connect(String address, int port, String password, boolean shareConnection)
public void serverInit()
serverInit in class CConnectionpublic void serverCutText(String content, int length)
serverCutText in class CMsgHandlerpublic void setDesktopSize(int var1,
int var2)
setDesktopSize in class CMsgHandlerpublic void clientRedirect(int i,
String s,
String s1)
clientRedirect in class CMsgHandlerpublic void setColourMapEntries(int offset,
int nbColors,
int[] rgb)
setColourMapEntries in class CMsgHandlerpublic void bell()
bell in class CMsgHandlerpublic PixelFormat getPreferredPF()
getPreferredPF in class CMsgHandlerpublic void refreshFramebuffer()
public void refreshFramebuffer(int x,
int y,
int w,
int h,
boolean incremental)
x - X coordinate of desired regiony - Y coordinate of desired regionw - Width of desired regionh - Height of desired regionincremental - Zero sends entire desktop, One sends changes only.public void framebufferUpdateStart()
framebufferUpdateStart in class CMsgHandlerpublic void framebufferUpdateEnd()
framebufferUpdateEnd in class CMsgHandlerpublic void fillRect(Rect r, int p)
fillRect in class CMsgHandlerpublic void imageRect(Rect r, Object p)
imageRect in class CMsgHandlerpublic void copyRect(Rect r, int sx, int sy)
copyRect in class CMsgHandlerpublic void keyDown(int key)
throws IOException
key - X Window System Keysym for key.IOException - If there is a socket error.public void keyUp(int key)
throws IOException
key - X Window System Keysym for key.IOException - If there is a socket error.public void mouseEvent(int buttonState,
int x,
int y)
throws IOException
buttonState - logical or of BUTTON_N_DOWNx - X coordinate of actiony - Y coordinate of actionIOException - If there is a socket error.public void close()
close in interface Closeableclose in interface AutoCloseablepublic boolean isShuttingDown()
public String toString()
public Rectangle getBounds()
public BufferedImage getFrameBuffer(int x, int y, int w, int h)
public void blockCallback()
blockCallback in interface FdInStreamBlockCallbackpublic void processMessages()
Copyright © 2019. All rights reserved.