Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ members = [
]

[workspace.package]
version = "0.19.0"
version = "0.19.1"
edition = "2021"
authors = ["shellrow <shellrow@fortnium.com>"]

[workspace.dependencies]
nex-core = { version = "0.19.0", path = "nex-core" }
nex-datalink = { version = "0.19.0", path = "nex-datalink" }
nex-macro = { version = "0.19.0", path = "nex-macro" }
nex-macro-helper = { version = "0.19.0", path = "nex-macro-helper" }
nex-packet = { version = "0.19.0", path = "nex-packet" }
nex-packet-builder = { version = "0.19.0", path = "nex-packet-builder" }
nex-socket = { version = "0.19.0", path = "nex-socket" }
nex-sys = { version = "0.19.0", path = "nex-sys" }
nex-core = { version = "0.19.1", path = "nex-core" }
nex-datalink = { version = "0.19.1", path = "nex-datalink" }
nex-macro = { version = "0.19.1", path = "nex-macro" }
nex-macro-helper = { version = "0.19.1", path = "nex-macro-helper" }
nex-packet = { version = "0.19.1", path = "nex-packet" }
nex-packet-builder = { version = "0.19.1", path = "nex-packet-builder" }
nex-socket = { version = "0.19.1", path = "nex-socket" }
nex-sys = { version = "0.19.1", path = "nex-sys" }
serde = { version = "1" }
libc = "0.2"
rand = "0.8"
Expand Down
4 changes: 2 additions & 2 deletions nex-socket/src/socket/async_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,12 +531,12 @@ impl AsyncSocket {
}
/// Get the value of the IP_HDRINCL option on this socket.
pub async fn is_ip_header_included(&self) -> io::Result<bool> {
self.inner.read_with(|inner| inner.header_included()).await
self.inner.read_with(|inner| inner.header_included_v4()).await
}
/// Set the value of the `IP_HDRINCL` option on this socket.
pub async fn set_ip_header_included(&self, include: bool) -> io::Result<()> {
self.inner
.write_with(|inner| inner.set_header_included(include))
.write_with(|inner| inner.set_header_included_v4(include))
.await
}
/// Get the value of the TCP_NODELAY option on this socket.
Expand Down
4 changes: 2 additions & 2 deletions nex-socket/src/socket/sync_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,11 @@ impl Socket {
}
/// Get the value of the IP_HDRINCL option on this socket.
pub fn is_ip_header_included(&self) -> io::Result<bool> {
self.inner.header_included()
self.inner.header_included_v4()
}
/// Set the value of the `IP_HDRINCL` option on this socket.
pub fn set_ip_header_included(&self, include: bool) -> io::Result<()> {
self.inner.set_header_included(include)
self.inner.set_header_included_v4(include)
}
/// Get the value of the TCP_NODELAY option on this socket.
pub fn nodelay(&self) -> io::Result<bool> {
Expand Down