Skip to content

Commit

Permalink
[docs] Update the SRT_KM_S_SECURED description.
Browse files Browse the repository at this point in the history
Updated pktRcvUndecrypted description.
  • Loading branch information
maxsharabayko committed Apr 11, 2024
1 parent a15cf4e commit 83077aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/API/API-socket-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Exchange for the initial key is done in the handshake.

- `SRT_KM_S_SECURED` (`2`): KM exchange was successful and the data will be sent
encrypted and will be decrypted by the receiver. This state is only possible on
both sides in both directions simultaneously.
both sides in both directions simultaneously. Any unencrypted packet will be dropped by the receiver.

- `SRT_KM_S_NOSECRET` (`3`): If this state is in the sending direction (`SRTO_SNDKMSTATE`),
then it means that the sending party has set a passphrase, but the peer did not.
Expand Down
4 changes: 3 additions & 1 deletion docs/API/statistics.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ Packets may be dropped conditionally when both `SRTO_TSBPDMODE` and `SRTO_TLPKTD
#### pktRcvUndecryptTotal

The total number of packets that failed to be decrypted at the receiver side. Available for receiver.
The statistic also counts unencrypted packets that were expected to be uncrypted on a secured connection (see [SRTO_KM_S_SECURED](API-socket-options.md#srt_km_state))
and hence dropped as not encrypted (undecrypted).

#### pktSndFilterExtraTotal

Expand Down Expand Up @@ -822,4 +824,4 @@ The ratio of unrecovered by the socket group packets `Dropped Packets Ratio` can
```
Dropped Packets Ratio = pktRcvDropTotal / pktSentUniqueTotal; in case both sender and receiver statistics is available
Dropped Packets Ratio = pktRcvDropTotal / (pktRecvUniqueTotal + pktRcvDropTotal); in case receiver only statistics is available
```
```

0 comments on commit 83077aa

Please sign in to comment.