Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcaffebabe committed Dec 21, 2019
2 parents b5d6a8a + 9fa9ab4 commit 4936843
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void init() {
MessageService.getInstance().registerMessageChain(new PrintMessageChain()
, PromiseMessageChain.getInstance(),new ClientCommandMessageChain(terminal,localPerList,this));
// 连接服务端
NettyClientConnection connection = new NettyClientConnection("127.0.0.1", 1999);
NettyClientConnection connection = new NettyClientConnection("100.64.137.37", 1999);
connection.bindConnectionListener(connectionListener);
// 向连接设置客户自定义的连接监听器
connection.connect();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void onMessage(String msg) {
}

private Message screen(Connection connection,CommandMessage message){
byte[] screen = terminal.getDesktop().getScreen(ImgType.JPEG, Resolution.getDefault());
byte[] screen = terminal.getDesktop().getScreen(ImgType.JPEG, new Resolution(1366,768));
return new ImgMessage(screen,ImgType.JPEG.getFormat());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public static void main(String[] args) {
launch();
}


@Override
public void start(Stage stage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("/Main.fxml"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private void init(ShellType type) throws IOException{
desktop = new WindowsDesktop();
break;
case NIX:
desktop = new LinuxDesktop();
desktop = new WindowsDesktop();
break;
default:
desktop = null;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package wang.ismy.seeaw4.terminal.impl;

import org.junit.Test;
import wang.ismy.seeaw4.terminal.Resolution;
import wang.ismy.seeaw4.terminal.desktop.impl.WindowsDesktop;
import wang.ismy.seeaw4.terminal.enums.ImgType;

import java.awt.*;
import java.io.IOException;
import java.util.Arrays;

public class CommonTerminalTest {

@Test
public void test() throws IOException {

}

}

This file was deleted.

0 comments on commit 4936843

Please sign in to comment.