feat(client): define constants and validation for DSCP and server fill
This commit is contained in:
2 files changed
+6
-1
No files matched your search
@@ -3,6 +3,8 @@ use std::{net::SocketAddr, time::Duration};
|
|||||||
use irtt_proto::{Clock, ReceivedStats, StampAt};
|
use irtt_proto::{Clock, ReceivedStats, StampAt};
|
||||||
|
|
||||||
pub(crate) const DEFAULT_PORT: u16 = 2112;
|
pub(crate) const DEFAULT_PORT: u16 = 2112;
|
||||||
|
pub const MAX_DSCP_CODEPOINT: u8 = 63;
|
||||||
|
pub const MAX_SERVER_FILL_BYTES: usize = 32;
|
||||||
pub(crate) const DEFAULT_DURATION: Duration = Duration::from_secs(3);
|
pub(crate) const DEFAULT_DURATION: Duration = Duration::from_secs(3);
|
||||||
pub(crate) const DEFAULT_INTERVAL: Duration = Duration::from_secs(1);
|
pub(crate) const DEFAULT_INTERVAL: Duration = Duration::from_secs(1);
|
||||||
pub(crate) const DEFAULT_OPEN_TIMEOUTS: [Duration; 4] = [
|
pub(crate) const DEFAULT_OPEN_TIMEOUTS: [Duration; 4] = [
|
||||||
|
|||||||
@@ -11,7 +11,10 @@ mod socket;
|
|||||||
mod timing;
|
mod timing;
|
||||||
|
|
||||||
pub use client::Client;
|
pub use client::Client;
|
||||||
pub use config::{ClientConfig, NegotiationPolicy, RecvBudget, RunMode, SocketConfig};
|
pub use config::{
|
||||||
|
ClientConfig, NegotiationPolicy, RecvBudget, RunMode, SocketConfig, MAX_DSCP_CODEPOINT,
|
||||||
|
MAX_SERVER_FILL_BYTES,
|
||||||
|
};
|
||||||
pub use error::{ClientError, EventSubscriptionError};
|
pub use error::{ClientError, EventSubscriptionError};
|
||||||
pub use event::{
|
pub use event::{
|
||||||
ClientEvent, OneWayDelaySample, OpenOutcome, PacketMeta, ReceivedStatsSample, RttSample,
|
ClientEvent, OneWayDelaySample, OpenOutcome, PacketMeta, ReceivedStatsSample, RttSample,
|
||||||
|
|||||||
Reference in new issue
Block a user