mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 22:51:22 +00:00
Removed heartbeat code - doesn't make a difference, really
This commit is contained in:
@@ -26,7 +26,6 @@ import net.sourceforge.guacamole.event.PointerEvent;
|
||||
|
||||
public abstract class Client {
|
||||
|
||||
public abstract void ready() throws GuacamoleException;
|
||||
public abstract void send(KeyEvent event) throws GuacamoleException;
|
||||
public abstract void send(PointerEvent event) throws GuacamoleException;
|
||||
public abstract void setClipboard(String clipboard) throws GuacamoleException;
|
||||
|
@@ -57,17 +57,6 @@ public class GuacamoleClient extends Client {
|
||||
|
||||
}
|
||||
|
||||
public void ready() throws GuacamoleException {
|
||||
|
||||
try {
|
||||
output.write("ready;");
|
||||
output.flush();
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw new GuacamoleException(e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static final int EVENT_DEADLINE = 500;
|
||||
|
||||
|
@@ -71,10 +71,6 @@ public class GuacamoleSession {
|
||||
client.setClipboard(clipboard);
|
||||
}
|
||||
|
||||
public void ready() throws GuacamoleException {
|
||||
client.ready();
|
||||
}
|
||||
|
||||
public void disconnect() throws GuacamoleException {
|
||||
client.disconnect();
|
||||
}
|
||||
|
@@ -1,43 +0,0 @@
|
||||
|
||||
package net.sourceforge.guacamole.net.input;
|
||||
|
||||
/*
|
||||
* Guacamole - Clientless Remote Desktop
|
||||
* Copyright (C) 2010 Michael Jumper
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import javax.servlet.ServletRequest;
|
||||
import net.sourceforge.guacamole.GuacamoleException;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
import net.sourceforge.guacamole.net.GuacamoleSession;
|
||||
import net.sourceforge.guacamole.net.XMLGuacamoleServlet;
|
||||
|
||||
public class Ready extends XMLGuacamoleServlet {
|
||||
|
||||
@Override
|
||||
protected void handleRequest(GuacamoleSession session, ServletRequest request, Element root) throws GuacamoleException {
|
||||
|
||||
try {
|
||||
session.getClient().ready();
|
||||
}
|
||||
catch (GuacamoleException e) {
|
||||
throw new GuacamoleException("Error updating ready status: " + e.getMessage(), e);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user