MCPcopy Create free account
hub / github.com/Hidden-Node/GooseRelayVPN-AndroidClient / Write

Method Write

internal/socks/conn.go:70–77  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

68}
69
70func (v *VirtualConn) Write(b []byte) (int, error) {
71 if len(b) > 0 {
72 // connect_data optimization: if this is the first write for a new
73 // session and the SYN hasn't been sent yet, bundle it.
74 v.s.EnqueueInitialData(b)
75 }
76 return len(b), nil
77}
78
79func (v *VirtualConn) Close() error {
80 v.s.RequestClose()

Calls 1

EnqueueInitialDataMethod · 0.80