proxy progress
This commit is contained in:
parent
8d208d0da1
commit
36d397fd14
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue