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
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iroh-net-ffi"
version = "0.26.0"
version = "0.27.0"
edition = "2021"
license = "MIT OR Apache-2.0"

Expand All @@ -19,7 +19,7 @@ required-features = ["headers"] # Do not build unless generating headers.
[dependencies]
anyhow = "1.0.79"
bytes = "1.5.0"
iroh-net = { version = "0.26", features = ["discovery-local-network"] }
iroh-net = { version = "0.27", features = ["discovery-local-network"] }
once_cell = "1.19.0"
quinn = { version = "0.11.3", package = "iroh-quinn" }
safer-ffi = { version = "0.1.5" }
Expand Down
2 changes: 1 addition & 1 deletion multi-thread-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int run_client(EndpointConfig_t *config, slice_ref_uint8_t alpn_slice,

printf("binding iroh endpoint\n");
Endpoint_t *ep = endpoint_default();
int bind_res = endpoint_bind(config, 0, &ep);
int bind_res = endpoint_bind(config, 0, 0, &ep);
if (bind_res != 0) {
fprintf(stderr, "failed to bind\n");
return -1;
Expand Down
6 changes: 1 addition & 5 deletions src/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,7 @@ pub fn node_addr_from_string(input: char_p::Ref<'_>, out: &mut NodeAddr) -> Addr
#[ffi_export]
pub fn node_addr_as_str(addr: &NodeAddr) -> char_p::Box {
let addr: iroh_net::NodeAddr = addr.clone().into();
NodeTicket::new(addr)
.unwrap()
.to_string()
.try_into()
.unwrap()
NodeTicket::new(addr).to_string().try_into().unwrap()
}

/// Free the node addr.
Expand Down
1 change: 0 additions & 1 deletion src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,6 @@ pub fn endpoint_connect(
out: &repr_c::Box<Connection>,
) -> EndpointResult {
let res = TOKIO_EXECUTOR.block_on(async move {
let node_addr = node_addr.into();
let conn = ep
.ep
.read()
Expand Down
Loading