MCPcopy Create free account
hub / github.com/apache/cloudstack / rQwait

Method rQwait

systemvm/agent/noVNC/core/websock.js:163–174  ·  view source on GitHub ↗
(msg, num, goback)

Source from the content-addressed store, hash-verified

161 // to be available in the receive queue. Return true if we need to
162 // wait (and possibly print a debug message), otherwise false.
163 rQwait(msg, num, goback) {
164 if (this._rQlen - this._rQi < num) {
165 if (goback) {
166 if (this._rQi < goback) {
167 throw new Error("rQwait cannot backup " + goback + " bytes");
168 }
169 this._rQi -= goback;
170 }
171 return true; // true means need more data
172 }
173 return false;
174 }
175
176 // Send queue
177

Callers 15

hasDataMethod · 0.80
_handleMessageMethod · 0.80
_negotiateSecurityMethod · 0.80
_handleSecurityReasonMethod · 0.80
_negotiateStdVNCAuthMethod · 0.80
_negotiateARDAuthMethod · 0.80
_negotiateTightAuthMethod · 0.80
_handleSecurityResultMethod · 0.80
_negotiateServerInitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected