gnu.rfb.server
Class RFBHost
java.lang.Object
gnu.rfb.server.RFBHost
- All Implemented Interfaces:
- java.lang.Runnable
public class RFBHost
- extends java.lang.Object
- implements java.lang.Runnable
A thread to host the RFB server.
Constructor Summary |
RFBHost(int port,
java.lang.String displayName,
java.lang.Class rfbServerClass,
RFBAuthenticator authenticator)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RFBHost
public RFBHost(int port,
java.lang.String displayName,
java.lang.Class rfbServerClass,
RFBAuthenticator authenticator)
throws java.lang.NoSuchMethodException
- Throws:
java.lang.NoSuchMethodException
setSharedServer
public void setSharedServer(RFBServer sharedServer)
- Sets the shared server.
- Parameters:
sharedServer
- The new server to use.
getSharedServer
public RFBServer getSharedServer()
- Returns:
- The shared server.
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
close
public void close()
- Closes the server thread.
getDisplayName
public java.lang.String getDisplayName()
- Returns:
- The name of the display of the server.