Skip to content

Commit

Permalink
feat(rust): implementation of reliable TCP portals
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjoDeundiak committed Sep 17, 2024
1 parent 0d77115 commit 072237a
Show file tree
Hide file tree
Showing 32 changed files with 2,006 additions and 113 deletions.
257 changes: 254 additions & 3 deletions Cargo.lock

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

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use ockam::identity::{
};
use ockam::remote::RemoteRelayOptions;
use ockam::tcp::{TcpOutletOptions, TcpTransportExtension};
use ockam::transport::HostnamePort;
use ockam::{node, Context, Result};
use ockam_api::authenticator::enrollment_tokens::TokenAcceptor;
use ockam_api::authenticator::one_time_code::OneTimeCode;
Expand Down Expand Up @@ -107,7 +108,7 @@ async fn start_node(ctx: Context, project_information_path: &str, token: OneTime
// 4. create a tcp outlet with the above policy
tcp.create_outlet(
"outlet",
"127.0.0.1:5000",
HostnamePort::new("127.0.0.1", 5000),
TcpOutletOptions::new()
.with_incoming_access_control_impl(incoming_access_control)
.with_outgoing_access_control_impl(outgoing_access_control),
Expand Down
Loading

0 comments on commit 072237a

Please sign in to comment.