Mercurial > hg > Members > nobuyasu > tightVNCClient
changeset 7:94c9e7825be2
add class MyRfbProto
author | e085711 |
---|---|
date | Fri, 15 Apr 2011 23:50:43 +0900 |
parents | b593d6ff5a46 |
children | efb8090ce9c3 |
files | .classpath src/MyRfbProto.java |
diffstat | 2 files changed, 46 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.classpath Fri Apr 15 23:50:43 2011 +0900 @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="output" path="bin"/> +</classpath>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/MyRfbProto.java Fri Apr 15 23:50:43 2011 +0900 @@ -0,0 +1,40 @@ +import java.io.IOException; +import java.net.Socket; + +class MyRfbProto extends RfbProto { + MyRfbProto(String h, int p, VncViewer v) throws IOException { + super(h, p, v); + } + + void mark(int len) throws IOException { + is.mark(len); + } + + void reset() throws IOException { + is.reset(); + } + + final boolean markSupported() { + return is.markSupported(); + } + + void init(Socket sock) throws IOException { + framebufferWidth = readU16(); + framebufferHeight = readU16(); + bitsPerPixel = readU8(); + depth = readU8(); + bigEndian = (readU8() != 0); + trueColour = (readU8() != 0); + redMax = readU16(); + greenMax = readU16(); + blueMax = readU16(); + redShift = readU8(); + greenShift = readU8(); + blueShift = readU8(); + + } + + + + +}