From f7a01897a429b2db4d17473bc4d9ecdb6e3d13b1 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 17 Jul 2020 15:27:08 -0400 Subject: [PATCH] proxy progress --- .../io/src/main/java/com/rusefi/io/commands/Command.java | 3 +-- .../io/src/main/java/com/rusefi/io/commands/HelloCommand.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/java_console/io/src/main/java/com/rusefi/io/commands/Command.java b/java_console/io/src/main/java/com/rusefi/io/commands/Command.java index 2667d1c6c7..a7ceadab6c 100644 --- a/java_console/io/src/main/java/com/rusefi/io/commands/Command.java +++ b/java_console/io/src/main/java/com/rusefi/io/commands/Command.java @@ -1,12 +1,11 @@ package com.rusefi.io.commands; import com.rusefi.io.IoStream; -import com.rusefi.io.tcp.BinaryProtocolServer; import java.io.IOException; public interface Command { byte getCommand(); - void handle(BinaryProtocolServer.Packet packet, IoStream stream) throws IOException; + void handle(IoStream stream) throws IOException; } diff --git a/java_console/io/src/main/java/com/rusefi/io/commands/HelloCommand.java b/java_console/io/src/main/java/com/rusefi/io/commands/HelloCommand.java index a1a34e4988..d058fbdd2b 100644 --- a/java_console/io/src/main/java/com/rusefi/io/commands/HelloCommand.java +++ b/java_console/io/src/main/java/com/rusefi/io/commands/HelloCommand.java @@ -40,7 +40,7 @@ public class HelloCommand implements Command { } @Override - public void handle(BinaryProtocolServer.Packet packet, IoStream stream) throws IOException { + public void handle(IoStream stream) throws IOException { stream.sendPacket((BinaryProtocolServer.TS_OK + tsSignature).getBytes(), logger); } }