MCPcopy
hub / github.com/MetaCubeX/mihomo / Dial

Method Dial

component/dialer/tfo.go:23–31  ·  view source on GitHub ↗
(earlyData []byte)

Source from the content-addressed store, hash-verified

21}
22
23func (c *tfoConn) Dial(earlyData []byte) (err error) {
24 conn, err := c.dialFn(c.ctx, earlyData)
25 if err != nil {
26 return
27 }
28 c.Conn = conn
29 c.dialed <- true
30 return err
31}
32
33func (c *tfoConn) Read(b []byte) (n int, err error) {
34 if c.closed {

Callers 2

WriteMethod · 0.95
resolveSocketByNetlinkFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected