MCPcopy Create free account
hub / github.com/Recordscript/recordscript / connect

Method connect

libs/hbb_common/src/tcp.rs:112–123  ·  view source on GitHub ↗
(
        target: T,
        local_addr: Option<SocketAddr>,
        proxy_conf: &Socks5Server,
        ms_timeout: u64,
    )

Source from the content-addressed store, hash-verified

110 }
111
112 pub async fn connect<'t, T>(
113 target: T,
114 local_addr: Option<SocketAddr>,
115 proxy_conf: &Socks5Server,
116 ms_timeout: u64,
117 ) -> ResultType<Self>
118 where
119 T: IntoTargetAddr<'t>,
120 {
121 let proxy = Proxy::from_conf(proxy_conf, Some(ms_timeout))?;
122 proxy.connect::<T>(target, local_addr).await
123 }
124
125 pub fn local_addr(&self) -> SocketAddr {
126 self.1

Callers 1

newMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected