MCPcopy Create free account
hub / github.com/TigerVNC/tigervnc / processMsg

Method processMsg

java/com/tigervnc/rfb/CConnection.java:140–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138 // processMsg() should be called whenever there is data to read on the
139 // InStream. You must have called initialiseProtocol() first.
140 public void processMsg()
141 {
142 switch (state_) {
143
144 case RFBSTATE_PROTOCOL_VERSION: processVersionMsg(); break;
145 case RFBSTATE_SECURITY_TYPES: processSecurityTypesMsg(); break;
146 case RFBSTATE_SECURITY: processSecurityMsg(); break;
147 case RFBSTATE_SECURITY_RESULT: processSecurityResultMsg(); break;
148 case RFBSTATE_INITIALISATION: processInitMsg(); break;
149 case RFBSTATE_NORMAL: reader_.readMsg(); break;
150 case RFBSTATE_UNINITIALISED:
151 throw new Exception("CConnection.processMsg: not initialised yet?");
152 default:
153 throw new Exception("CConnection.processMsg: invalid state");
154 }
155 }
156
157 private void processVersionMsg()
158 {

Callers 1

processSecurityMsgMethod · 0.45

Calls 6

processVersionMsgMethod · 0.95
processSecurityMsgMethod · 0.95
processInitMsgMethod · 0.95
readMsgMethod · 0.45

Tested by

no test coverage detected