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

Function setDesktopSize

systemvm/agent/noVNC/core/rfb.js:3441–3462  ·  view source on GitHub ↗
(sock, width, height, id, flags)

Source from the content-addressed store, hash-verified

3439 },
3440
3441 setDesktopSize(sock, width, height, id, flags) {
3442 sock.sQpush8(251); // msg-type
3443
3444 sock.sQpush8(0); // padding
3445
3446 sock.sQpush16(width);
3447 sock.sQpush16(height);
3448
3449 sock.sQpush8(1); // number-of-screens
3450
3451 sock.sQpush8(0); // padding
3452
3453 // screen array
3454 sock.sQpush32(id);
3455 sock.sQpush16(0); // x-position
3456 sock.sQpush16(0); // y-position
3457 sock.sQpush16(width);
3458 sock.sQpush16(height);
3459 sock.sQpush32(flags);
3460
3461 sock.flush();
3462 },
3463
3464 clientFence(sock, flags, payload) {
3465 sock.sQpush8(248); // msg-type

Callers

nothing calls this directly

Calls 4

sQpush8Method · 0.80
sQpush16Method · 0.80
sQpush32Method · 0.80
flushMethod · 0.45

Tested by

no test coverage detected