Skip to content

Commit

Permalink
Correct docs: examples of v3 get screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
thevindu-w committed Sep 11, 2024
1 parent 1a10b7d commit 3fdf488
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docs/examples/v3.html
Original file line number Diff line number Diff line change
Expand Up @@ -928,8 +928,8 @@ <h2 id="get_screenshot_only">Get Screenshot Only</h2>
</tr>
<tr>
<td class="center" rowspan="2">Display selection</td>
<td class="center">1</td>
<td class="mono">02</td>
<td class="center">8</td>
<td class="mono">00 00 00 00 00 00 00 02</td>
<td></td>
<td>Client selects the second screen</td>
</tr>
Expand Down Expand Up @@ -1001,16 +1001,16 @@ <h2 id="get_screenshot_only_no_data">Get Screenshot Only (no data)</h2>
</tr>
<tr>
<td class="center" rowspan="2">Display selection</td>
<td class="center">1</td>
<td class="mono">05</td>
<td class="center">8</td>
<td class="mono">00 00 00 00 00 00 00 05</td>
<td></td>
<td>Client selects the fifth screen</td>
</tr>
<tr>
<td class="center">1</td>
<td></td>
<td class="mono">02</td>
<td>Server indicates that there is no fifth display (No data) and rejects the request.</td>
<td>Server indicates that there is no fifth display (NO_DATA) and rejects the request.</td>
</tr>
<tr>
<td class="center" colspan="5">Communication ends and connection closes</td>
Expand Down
9 changes: 4 additions & 5 deletions docs/proto_v3.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ <h2 id="method-status-codes">Method Status Codes</h2>
<h2 id="supported-methods">Supported Methods</h2>
<p>
Most of the supported methods are similar to those of <a href="proto_v2.html#supported-methods">Version
2</a> except for some differences in Get Files, Send Files, and
some newly added methods.<br>
2</a> except for some differences in Get Files, Send Files, and the two newly added methods.<br>
Encoding of lengths, text, file names, file contents, and images and the maximum allowed text lengths, file
name lengths, file sizes, and image sizes are identical to those of <a
href="proto_v1.html#encoding-notes">Version 1 and 2</a>.
Expand Down Expand Up @@ -146,9 +145,9 @@ <h3 id="get-screenshot-only">Get Screenshot Only</h3>
<ul>
<li>First, the client sends the method request code.</li>
<li>The server responds with the status OK.</li>
<li>Next, the client sends the display number to get the screenshot. The display number can be from 1 to
65536 inclusive. Also, the display number can be sent as -1 to let the server use its default display.
Display number 0 is reserved, and the behavior is undefined.
<li>Next, the client sends the display number, encoded as a numeric value, to get the screenshot. The
display number can be from 1 to 65536 inclusive. Also, the display number can be sent as -1 to let the
server use its default display. Display number 0 is reserved, and the behavior is undefined.
</li>
<li>The server responds with the status OK if the screenshot is taken and proceeds to the next step.
Otherwise, it will send the status NO_DATA and terminate the connection.</li>
Expand Down

0 comments on commit 3fdf488

Please sign in to comment.