Skip to content
Draft
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
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ rust-version = "1.59.0"

[dependencies]
amplify = "4.6.0"
socket2 = "0.5.7"
io-reactor = { version = "0.5.1", features = ["log"] }
netservices = { version = "0.8.0", features = ["reactor", "log", "eidolon"] }
cyphernet = { version = "0.5.2", features = ["noise_x25519", "ed25519", "noise_sha2", "p2p-ed25519", "dns", "mixnets", "multibase", "eidolon"] }
Expand All @@ -21,3 +22,6 @@ shellexpand = "3.1.0"
crossbeam-channel = "0.5.12"
log = { version = "0.4.21", features = ["std"] }
env_logger = "0.11.3"

[patch.crates-io]
netservices = { git = "https://github.com/cyphernet-dao/rust-netservices", branch = "socket2accept" }
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mod types {
use netservices::session::CypherSession;

pub type RemoteHost = PeerAddr<ed25519::PublicKey, NetAddr<HostName>>;
pub type Session = CypherSession<ed25519::PrivateKey, Sha256>;
pub type Session = CypherSession<ed25519::PrivateKey, Sha256, socket2::Socket>;
pub type Transport = netservices::NetTransport<Session>;
}
pub use types::*;
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use reactor::{Error, Resource, ResourceId, ResourceType, Timestamp};

use crate::{Session, Transport};

pub type Accept = netservices::NetAccept<Session>;
pub type Accept = netservices::NetAccept<Session, socket2::Socket>;
pub type Action = reactor::Action<Accept, Transport>;

pub type Ecdh = x25519::PrivateKey;
Expand Down