org.glyptodon.guacamole.net
public class SSLGuacamoleSocket extends Object implements GuacamoleSocket
| Constructor and Description |
|---|
SSLGuacamoleSocket(String hostname,
int port)
Creates a new SSLGuacamoleSocket which reads and writes instructions
to the Guacamole instruction stream of the Guacamole proxy server
running at the given hostname and port using SSL.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases all resources in use by the connection represented by this
GuacamoleSocket.
|
GuacamoleReader |
getReader()
Returns a GuacamoleReader which can be used to read from the
Guacamole instruction stream associated with the connection
represented by this GuacamoleSocket.
|
GuacamoleWriter |
getWriter()
Returns a GuacamoleWriter which can be used to write to the
Guacamole instruction stream associated with the connection
represented by this GuacamoleSocket.
|
boolean |
isOpen()
Returns whether this GuacamoleSocket is open and can be used for reading
and writing.
|
public SSLGuacamoleSocket(String hostname, int port) throws GuacamoleException
hostname - The hostname of the Guacamole proxy server to connect to.port - The port of the Guacamole proxy server to connect to.GuacamoleException - If an error occurs while connecting to the
Guacamole proxy server.public void close()
throws GuacamoleException
GuacamoleSocketclose in interface GuacamoleSocketGuacamoleException - If an error occurs while releasing resources.public GuacamoleReader getReader()
GuacamoleSocketgetReader in interface GuacamoleSocketpublic GuacamoleWriter getWriter()
GuacamoleSocketgetWriter in interface GuacamoleSocketpublic boolean isOpen()
GuacamoleSocketisOpen in interface GuacamoleSocketCopyright © 2014. All Rights Reserved.