Mercurial > hg > Members > riono > TreeVNC_ja_comment
comparison src/main/java/jp/ac/u_ryukyu/treevnc/ScreenChangeRequest.java @ 427:ed15f0bd8dfa
Remove shareScrrenNumber for ScreenChangeRequest Message
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 01 Feb 2016 04:39:53 +0900 |
parents | c225c7963778 |
children |
comparison
equal
deleted
inserted
replaced
426:3a97a014d7ee | 427:ed15f0bd8dfa |
---|---|
23 private final int y; | 23 private final int y; |
24 private short id; | 24 private short id; |
25 private int frameSizeWidth; | 25 private int frameSizeWidth; |
26 private int frameSizeHeight; | 26 private int frameSizeHeight; |
27 private int port; | 27 private int port; |
28 private int shareScreenNumber; | |
29 | 28 |
30 public ScreenChangeRequest(String adr, int port, short id, int x, int y, int width, int height, int shareScreenNumber, int scale) { | 29 public ScreenChangeRequest(String adr, int port, short id, int x, int y, int width, int height, int scale) { |
31 this.bytes = adr; | 30 this.bytes = adr; |
32 this.port = port; | 31 this.port = port; |
33 this.id = id; | 32 this.id = id; |
34 this.x = x; | 33 this.x = x; |
35 this.y = y; | 34 this.y = y; |
36 this.frameSizeWidth = width; | 35 this.frameSizeWidth = width; |
37 this.frameSizeHeight = height; | 36 this.frameSizeHeight = height; |
38 this.shareScreenNumber = shareScreenNumber; | |
39 this.scale = scale; | 37 this.scale = scale; |
40 System.out.println("Client send change screen server request :" + adr); | 38 System.out.println("Client send change screen server request :" + adr); |
41 } | 39 } |
42 | 40 |
43 @Override | 41 @Override |
52 out.putInt(x); | 50 out.putInt(x); |
53 out.putInt(y); | 51 out.putInt(y); |
54 out.putInt(frameSizeWidth); | 52 out.putInt(frameSizeWidth); |
55 out.putInt(frameSizeHeight); | 53 out.putInt(frameSizeHeight); |
56 out.putInt(port); | 54 out.putInt(port); |
57 out.putInt(shareScreenNumber); | |
58 out.putInt(scale); | 55 out.putInt(scale); |
59 writer.write(out.array(), 0, out.position()); | 56 writer.write(out.array(), 0, out.position()); |
60 writer.flush(); | 57 writer.flush(); |
61 } | 58 } |
62 | 59 |