From 6ec3d1676df88908e624d9d29794e9f72329119a Mon Sep 17 00:00:00 2001 From: Benjamin Kirkbride Date: Wed, 14 Aug 2024 10:56:07 -0400 Subject: [PATCH 1/2] expose NetcodeSocket --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index edc3f70..455f426 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -127,6 +127,7 @@ pub(crate) const MAX_PKT_BUF_SIZE: usize = 1300; pub(crate) const CONNECTION_TIMEOUT_SEC: i32 = 15; pub(crate) const PACKET_SEND_RATE_SEC: f64 = 1.0 / 10.0; +pub use crate::client::NetcodeSocket; pub use crate::client::{Client, ClientConfig, ClientState}; pub use crate::crypto::{generate_key, try_generate_key, Key}; pub use crate::error::{Error, Result}; From 37d860d8ad50ac3e4bcad9f9d988350b85d1c53d Mon Sep 17 00:00:00 2001 From: Benjamin Kirkbride Date: Wed, 14 Aug 2024 18:32:43 -0400 Subject: [PATCH 2/2] oops --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 455f426..fd4bcc2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -127,7 +127,7 @@ pub(crate) const MAX_PKT_BUF_SIZE: usize = 1300; pub(crate) const CONNECTION_TIMEOUT_SEC: i32 = 15; pub(crate) const PACKET_SEND_RATE_SEC: f64 = 1.0 / 10.0; -pub use crate::client::NetcodeSocket; +pub use crate::socket::NetcodeSocket; pub use crate::client::{Client, ClientConfig, ClientState}; pub use crate::crypto::{generate_key, try_generate_key, Key}; pub use crate::error::{Error, Result};