proxy progress

This commit is contained in:
rusefi 2020-07-17 15:27:08 -04:00
parent 8d208d0da1
commit 36d397fd14
2 changed files with 2 additions and 3 deletions

View File

@ -1,12 +1,11 @@
package com.rusefi.io.commands; package com.rusefi.io.commands;
import com.rusefi.io.IoStream; import com.rusefi.io.IoStream;
import com.rusefi.io.tcp.BinaryProtocolServer;
import java.io.IOException; import java.io.IOException;
public interface Command { public interface Command {
byte getCommand(); byte getCommand();
void handle(BinaryProtocolServer.Packet packet, IoStream stream) throws IOException; void handle(IoStream stream) throws IOException;
} }

View File

@ -40,7 +40,7 @@ public class HelloCommand implements Command {
} }
@Override @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); stream.sendPacket((BinaryProtocolServer.TS_OK + tsSignature).getBytes(), logger);
} }
} }