Mercurial > hg > Applications > TreeVNC
comparison src/main/java/jp/ac/u_ryukyu/treevnc/TreeVncProtocol.java @ 454:432e2967eaab
All screen sharing request information is now in ConnectionPresenter only
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 22 Jun 2016 11:55:45 +0900 |
parents | 931e1abda61d |
children |
comparison
equal
deleted
inserted
replaced
453:d0ca1be5c47c | 454:432e2967eaab |
---|---|
1 package jp.ac.u_ryukyu.treevnc; | 1 package jp.ac.u_ryukyu.treevnc; |
2 | 2 |
3 import java.io.*; | 3 import com.glavsoft.rfb.protocol.ProtocolContext.TreeCommand; |
4 import java.net.*; | 4 |
5 import java.io.BufferedReader; | |
6 import java.io.DataOutputStream; | |
7 import java.io.IOException; | |
8 import java.io.InputStreamReader; | |
9 import java.net.Socket; | |
5 import java.nio.ByteBuffer; | 10 import java.nio.ByteBuffer; |
6 import java.nio.ByteOrder; | 11 import java.nio.ByteOrder; |
7 import com.glavsoft.rfb.protocol.ProtocolContext.TreeCommand; | |
8 | 12 |
9 public class TreeVncProtocol { | 13 public class TreeVncProtocol { |
10 private BufferedReader is = null; | 14 private BufferedReader is = null; |
11 private DataOutputStream os = null; | 15 private DataOutputStream os = null; |
12 private Socket echoSocket = null; | 16 private Socket echoSocket = null; |
13 private int rootPort; | 17 private int rootPort; |
14 private String rootAddress; | 18 private String rootAddress; |
15 private int singleWidth; | |
16 private int singleHeight; | |
17 | 19 |
18 public TreeVncProtocol(String name, int echoPort) { | 20 public TreeVncProtocol(String name, int echoPort) { |
19 this.rootPort = echoPort; | 21 this.rootPort = echoPort; |
20 this.rootAddress = name; | 22 this.rootAddress = name; |
21 } | |
22 | |
23 public void setSingleSize(int singleWidth, int singleHeight) { | |
24 this.singleWidth = singleWidth; | |
25 this.singleHeight = singleHeight; | |
26 } | 23 } |
27 | 24 |
28 public void openport() throws IOException { | 25 public void openport() throws IOException { |
29 echoSocket = new Socket(rootAddress, rootPort); | 26 echoSocket = new Socket(rootAddress, rootPort); |
30 // echoSocket.setReuseAddress(true); | 27 // echoSocket.setReuseAddress(true); |