public class GazeProto extends RfbProto
Modifier and Type | Field and Description |
---|---|
(package private) static int |
ANY_ID
Message destination Id.
|
static int |
gdControlMsg
Message types
|
static int |
gdDescription
gdTextMsg Message subtypes
|
static int |
gdGazeBlink
gdGazeMsg Message subtypes
|
static int |
gdGazeFixation
gdGazeMsg Message subtypes
|
static int |
gdGazeMsg
Message types
|
static int |
gdGazeSample
gdGazeMsg Message subtypes
|
static int |
gdName
gdTextMsg Message subtypes
|
static int |
gdPoke
gdControlMsg Message subtypes
|
static int |
gdRegister
gdControlMsg Message subtypes
|
static int |
gdText
gdTextMsg Message subtypes
|
static int |
gdTextMsg
Message types
|
static int |
gdUnregister
gdControlMsg Message subtypes
|
(package private) static int |
SERVER_ID
Message destination Id.
|
short |
srcClientId
Last received image source
|
AuthNone, AuthUnixLogin, AuthVNC, Bell, blueMax, blueShift, ClientCutText, clientMajor, clientMinor, copyRectSrcX, copyRectSrcY, desktopName, EncodingCompressLevel0, EncodingCopyRect, EncodingCoRRE, EncodingHextile, EncodingLastRect, EncodingNewFBSize, EncodingPointerPos, EncodingQualityLevel0, EncodingRaw, EncodingRichCursor, EncodingRRE, EncodingTight, EncodingXCursor, EncodingZlib, EncodingZRLE, FixColourMapEntries, framebufferHeight, FramebufferUpdate, FramebufferUpdateRequest, framebufferWidth, greenMax, greenShift, HextileAnySubrects, HextileBackgroundSpecified, HextileForegroundSpecified, HextileRaw, HextileSubrectsColoured, inlock, KeyboardEvent, MaxNormalEncoding, os, outlock, PointerEvent, redMax, redShift, SecTypeInvalid, SecTypeNone, SecTypeTight, SecTypeVncAuth, ServerCutText, serverMajor, serverMinor, SetColourMapEntries, SetEncodings, SetPixelFormat, SigAuthNone, SigAuthUnixLogin, SigAuthVNC, SigEncodingCompressLevel0, SigEncodingCopyRect, SigEncodingCoRRE, SigEncodingHextile, SigEncodingLastRect, SigEncodingNewFBSize, SigEncodingPointerPos, SigEncodingQualityLevel0, SigEncodingRaw, SigEncodingRichCursor, SigEncodingRRE, SigEncodingTight, SigEncodingXCursor, SigEncodingZlib, SigEncodingZRLE, updateNRects, updateRectEncoding, updateRectH, updateRectW, updateRectX, updateRectY
Constructor and Description |
---|
GazeProto(java.lang.String h,
int p,
GazeVncViewer v)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private GazeEntryBlink |
readBlink()
Read one blink structure
|
java.util.Vector<GazeEntryBlink> |
ReadBlinksMsg()
Read blinks message
|
java.lang.String |
ReadDescriptionMsg()
Read description message @throws IOException
|
private GazeEntryFixation |
readFixation()
Read one fixation structure
|
java.util.Vector<GazeEntryFixation> |
ReadFixationsMsg()
Read fixations message
|
private int |
readHeaderMsg()
Read income server message, heading a list of gaze data structures type
and subtype already read
|
java.lang.String |
ReadNameMsg()
Read name message @throws IOException
|
short |
ReadPokeMsg()
Read register message @throws IOException
|
short |
ReadRegisterMsg()
Read register message @throws IOException
|
private GazeEntrySample |
readSample()
Read one sample structure
|
java.util.Vector<GazeEntrySample> |
ReadSamplesMsg()
Read single samples message
|
int |
readServerMessageSubtype() |
private java.lang.String |
readText(int length)
Read one blink structure
|
java.lang.String |
ReadTextMsg()
Read text message @throws IOException
|
short |
ReadUnRegisterMsg()
Read unregister message @throws IOException
|
void |
WriteBlinksMsg(Queue<GazeEntryBase> bQue)
Write blinks message
|
private void |
WriteClientHeaderMsg(int msgType,
int destinationId,
int length)
Write outcome message, describing the data that will follow it
|
void |
WriteDescriptionMsg(java.lang.String description)
Write description message
|
void |
WriteFixationsMsg(Queue<GazeEntryBase> fQue)
Write fixations message
|
private void |
writeGazeEntry(GazeEntryBase entry) |
protected void |
WriteGazeEntryMsg(Queue<GazeEntryBase> entries,
int msgType,
int entrySize,
int dstId) |
private void |
writeHeaderMsg(int type,
int subtype,
int destinationId,
int length)
C2S messages processing.
|
void |
WriteNameMsg(java.lang.String name)
Write name message
|
void |
WritePokeMsg()
Write poke message
|
void |
WriteRegisterMsg()
Write register message
|
void |
WriteSamplesMsg(Queue<GazeEntryBase> sQue)
Write single samples message
|
private void |
writeText(java.lang.String str)
Write text
|
void |
WriteTextMsg(java.lang.String text)
Write text message
|
void |
WriteUnregisterMsg()
Write unregister message
|
authenticateNone, authenticateVNC, available, close, closed, getNumBytesRead, kbitsPerSecond, negotiateAuthenticationTight, negotiateSecurity, readFramebufferUpdate, readFramebufferUpdateRectHdr, readFully, readFully, readServerCutText, readServerMessageType, readU16, readU32, readU8, readVersionMsg, setFramebufferSize, setupTunneling, skipBytes, startTiming, stopTiming, timeWaited, writeClientCutText, writeFramebufferUpdateRequest, writeFully, writeFully, writeFully, writeVersionMsg
static final int SERVER_ID
static final int ANY_ID
public static final int gdGazeMsg
public static final int gdControlMsg
public static final int gdTextMsg
public static final int gdGazeSample
public static final int gdGazeFixation
public static final int gdGazeBlink
public static final int gdPoke
public static final int gdRegister
public static final int gdUnregister
public static final int gdName
public static final int gdDescription
public static final int gdText
public short srcClientId
GazeProto(java.lang.String h, int p, GazeVncViewer v) throws java.io.IOException
h
- Host addressp
- Protocolv
- Viewerjava.io.IOException
public int readServerMessageSubtype() throws java.io.IOException
java.io.IOException
private int readHeaderMsg() throws java.io.IOException
java.io.IOException
private GazeEntrySample readSample() throws java.io.IOException
JGDSingleSample
objectjava.io.IOException
private GazeEntryFixation readFixation() throws java.io.IOException
JGDFixation
objectjava.io.IOException
private GazeEntryBlink readBlink() throws java.io.IOException
JGDBlink
objectjava.io.IOException
private java.lang.String readText(int length) throws java.io.IOException
JGDBlink
objectjava.io.IOException
public java.util.Vector<GazeEntrySample> ReadSamplesMsg() throws java.io.IOException
JGDSingleSample
structures,
received from the serverjava.io.IOException
public java.util.Vector<GazeEntryFixation> ReadFixationsMsg() throws java.io.IOException
JGDFixation
structures, received
from the serverjava.io.IOException
public java.util.Vector<GazeEntryBlink> ReadBlinksMsg() throws java.io.IOException
JGDBlink
structures, received from the
serverjava.io.IOException
public short ReadRegisterMsg() throws java.io.IOException
java.io.IOException
public short ReadUnRegisterMsg() throws java.io.IOException
java.io.IOException
public short ReadPokeMsg() throws java.io.IOException
java.io.IOException
public java.lang.String ReadNameMsg() throws java.io.IOException
java.io.IOException
public java.lang.String ReadDescriptionMsg() throws java.io.IOException
java.io.IOException
public java.lang.String ReadTextMsg() throws java.io.IOException
java.io.IOException
private void writeHeaderMsg(int type, int subtype, int destinationId, int length) throws java.io.IOException
java.io.IOException
private void WriteClientHeaderMsg(int msgType, int destinationId, int length) throws java.io.IOException
java.io.IOException
private void writeGazeEntry(GazeEntryBase entry) throws java.io.IOException
java.io.IOException
private void writeText(java.lang.String str) throws java.io.IOException
java.io.IOException
public void WriteSamplesMsg(Queue<GazeEntryBase> sQue) throws java.io.IOException
ssVec
- Queue of JGDSingleSample
structures,
received from the serverjava.io.IOException
protected void WriteGazeEntryMsg(Queue<GazeEntryBase> entries, int msgType, int entrySize, int dstId) throws java.io.IOException
java.io.IOException
public void WriteFixationsMsg(Queue<GazeEntryBase> fQue) throws java.io.IOException
fVec
- Queue of JGDFixation
structures, received
from the serverjava.io.IOException
public void WriteBlinksMsg(Queue<GazeEntryBase> bQue) throws java.io.IOException
bVec
- Queue of JGDBlink
structures, received from
the serverjava.io.IOException
public void WriteNameMsg(java.lang.String name) throws java.io.IOException
name
- New name of the client that should be sent to the server and
distributed to clientsjava.io.IOException
public void WriteDescriptionMsg(java.lang.String description) throws java.io.IOException
description
- New description of the client that should be sent to
the server and distributed to clientsjava.io.IOException
public void WriteTextMsg(java.lang.String text) throws java.io.IOException
text
- New text message that should be sent to the server and
distributed to clientsjava.io.IOException
public void WriteRegisterMsg() throws java.io.IOException
java.io.IOException
public void WriteUnregisterMsg() throws java.io.IOException
java.io.IOException
public void WritePokeMsg() throws java.io.IOException
java.io.IOException