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

Method _handleDesktopName

systemvm/agent/noVNC/core/rfb.js:3016–3033  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3014 }
3015
3016 _handleDesktopName() {
3017 if (this._sock.rQwait("DesktopName", 4)) {
3018 return false;
3019 }
3020
3021 let length = this._sock.rQshift32();
3022
3023 if (this._sock.rQwait("DesktopName", length, 4)) {
3024 return false;
3025 }
3026
3027 let name = this._sock.rQshiftStr(length);
3028 name = decodeUTF8(name, true);
3029
3030 this._setDesktopName(name);
3031
3032 return true;
3033 }
3034
3035 _handleLedEvent() {
3036 if (this._sock.rQwait("LED status", 1)) {

Callers 1

_handleRectMethod · 0.95

Calls 5

_setDesktopNameMethod · 0.95
decodeUTF8Function · 0.90
rQwaitMethod · 0.80
rQshift32Method · 0.80
rQshiftStrMethod · 0.80

Tested by

no test coverage detected