pub enum TcpProxyControlRequest {
OpenProxy_ {
target_port: u16,
proxy_port: u16,
tcp_proxy: ServerEnd<TcpProxy_Marker>,
responder: TcpProxyControlOpenProxy_Responder,
},
}
Expand description
A protocol that enables creating TCP proxies so that host tests may access debug services that normally accept only local connections.
For example, if web browser exposes a debug HTTP service listening on [::1]:9999, TcpProxyControl may listen on [::]:10000 and forward requests to port 9999. The host test then calls port 10000 to access the web browser’s debug service.
Variants§
OpenProxy_
Opens a proxy to the given |target_port|. If a proxy is already open for the specified |target_port|, the existing |open_port| is returned. The proxy remains open as long as at least a single client keeps their |proxy_token| handle for the specified |target_port|. Once all the |proxy_token| handles are closed, the proxy is closed. |proxy_port| is the source port where the proxy is opened. Except when the test running on remote host needs to reach a local device, its value is 0. This is only useful when the user has tunneled these ports to the local device and specified that port number as |proxy_port|.
Implementations§
Source§impl TcpProxyControlRequest
impl TcpProxyControlRequest
pub fn into_open_proxy_( self, ) -> Option<(u16, u16, ServerEnd<TcpProxy_Marker>, TcpProxyControlOpenProxy_Responder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL