|
30 | 30 | //! 0x00, 0x00, 0x00, 0x00, // \
|
31 | 31 | //! 0x00, 0x00, 0x00, 0x00, // } transaction ID
|
32 | 32 | //! 0x00, 0x00, 0x73, 0x92, // /
|
33 |
| -//! 0x00, 0x1D, 0x00, 0x04, // PasswordAlgorithm ttribute |
34 |
| -//! 0x00, 0x02, 0x00, 0x00 // PasswordAlgorithm attribute |
| 33 | +//! 0x00, 0x1D, 0x00, 0x04, // PasswordAlgorithm attribute header (type and length) |
| 34 | +//! 0x00, 0x02, 0x00, 0x00 // PasswordAlgorithm attribute value |
35 | 35 | //! ];
|
36 | 36 | //! let msg = Message::from_bytes(&msg_data).unwrap();
|
37 | 37 | //!
|
@@ -84,7 +84,7 @@ use crate::attribute::*;
|
84 | 84 |
|
85 | 85 | use tracing::{debug, warn};
|
86 | 86 |
|
87 |
| -/// The value of magic cookie (in network byte order) as specified in RFC5389, and RFC8489. |
| 87 | +/// The value of the magic cookie (in network byte order) as specified in RFC5389, and RFC8489. |
88 | 88 | pub const MAGIC_COOKIE: u32 = 0x2112A442;
|
89 | 89 |
|
90 | 90 | /// The value of the binding message type. Can be used in either a request or an indication
|
@@ -1331,6 +1331,7 @@ impl<'a> Iterator for MessageAttributesIter<'a> {
|
1331 | 1331 | }
|
1332 | 1332 | }
|
1333 | 1333 |
|
| 1334 | +/// A builder of a STUN Message to a sequence of bytes. |
1334 | 1335 | #[derive(Clone, Debug)]
|
1335 | 1336 | pub struct MessageBuilder<'a> {
|
1336 | 1337 | msg_type: MessageType,
|
|
0 commit comments