Mercurial > hg > Members > nobuyasu > tightVNCProxy
comparison src/myVncProxy/MyRfbProto.java @ 141:fc77596d3064
add XMLRPCTest.java
author | e085711 |
---|---|
date | Sat, 03 Sep 2011 13:47:08 +0900 |
parents | 001f0b770f96 |
children | c1d7d4fbcfb9 |
comparison
equal
deleted
inserted
replaced
138:001f0b770f96 | 141:fc77596d3064 |
---|---|
24 import org.junit.Test; | 24 import org.junit.Test; |
25 | 25 |
26 import myVncProxy.MulticastQueue.Client; | 26 import myVncProxy.MulticastQueue.Client; |
27 | 27 |
28 import java.util.concurrent.ExecutorService; | 28 import java.util.concurrent.ExecutorService; |
29 import java.util.concurrent.atomic.AtomicBoolean; | |
30 import java.util.concurrent.atomic.AtomicInteger; | 29 import java.util.concurrent.atomic.AtomicInteger; |
31 import java.util.zip.DataFormatException; | 30 import java.util.zip.DataFormatException; |
32 import java.util.zip.Deflater; | 31 import java.util.zip.Deflater; |
33 import java.util.zip.Inflater; | 32 import java.util.zip.Inflater; |
34 import java.io.OutputStream; | 33 import java.io.OutputStream; |
228 serverMajor = (b[4] - '0') * 100 + (b[5] - '0') * 10 + (b[6] - '0'); | 227 serverMajor = (b[4] - '0') * 100 + (b[5] - '0') * 10 + (b[6] - '0'); |
229 serverMinor = (b[8] - '0') * 100 + (b[9] - '0') * 10 + (b[10] - '0'); | 228 serverMinor = (b[8] - '0') * 100 + (b[9] - '0') * 10 + (b[10] - '0'); |
230 | 229 |
231 if (serverMajor < 3) { | 230 if (serverMajor < 3) { |
232 throw new IOException( | 231 throw new IOException( |
233 "RFB server does not support protocol version 3"); | 232 "RFB server does not support protocol version 3"); |
234 } | 233 } |
235 | 234 |
236 if (serverMinor == 998) { | 235 if (serverMinor == 998) { |
237 sendPortNumber(os); | 236 sendPortNumber(os); |
238 } | 237 } |