wip
This commit is contained in:
@@ -124,6 +124,7 @@ pub(crate) struct NestedNodeConnectionHandler<S> {
|
||||
|
||||
/// Channel for adding new client handle and handling control requests from `NestedConnectionsController`
|
||||
control_receiver: NestedNodeControlReceiver,
|
||||
// client_streams: HashMap<StreamId, LpClientStream>,
|
||||
}
|
||||
|
||||
impl<S> NestedNodeConnectionHandler<S>
|
||||
|
||||
@@ -43,6 +43,7 @@ pub struct LpClientConnectionHandler<S = TcpStream> {
|
||||
/// Tuple contains (stream, target_address) to verify subsequent forwards go to same exit.
|
||||
exit_stream: Option<(S, SocketAddr)>,
|
||||
|
||||
/// Forwarding channel for sending requests to the exit gateway and receiving responses.
|
||||
#[allow(dead_code)]
|
||||
forwarding_channel: Option<NestedClientConnection>,
|
||||
}
|
||||
|
||||
@@ -127,6 +127,8 @@ pub struct LpIngressNodeConnectionHandler<S = TcpStream> {
|
||||
state: SharedLpNodeControlState,
|
||||
stats: LpConnectionStats,
|
||||
transport_session: LpTransportSession,
|
||||
// LOCAL receiver index to stream id
|
||||
// client_streams: HashMap<ReceiverIndex, ClientStreamId>,
|
||||
}
|
||||
|
||||
impl<S> LpIngressNodeConnectionHandler<S>
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
use crate::node::lp::control::egress::connection::NestedNodeConnectionSender;
|
||||
use futures::channel::mpsc::UnboundedReceiver;
|
||||
|
||||
pub(crate) type NestedClientConnectionSender = ();
|
||||
pub(crate) type NestedClientConnectionReceiver = ();
|
||||
pub(crate) type NestedClientConnectionReceiver = UnboundedReceiver<Vec<u8>>;
|
||||
|
||||
pub(crate) struct NestedClientConnection {
|
||||
// handle for sending into `NestedNodeConnectionHandler`
|
||||
|
||||
Reference in New Issue
Block a user