MCPcopy
hub / github.com/txthinking/brook / SimpleStreamClient

Struct SimpleStreamClient

simplestreamclient.go:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26)
27
28type SimpleStreamClient struct {
29 Server net.Conn
30 Timeout int
31 RB []byte
32 WB []byte
33 network string
34 src string
35 dst string
36}
37
38func NewSimpleStreamClient(network string, password []byte, src string, server net.Conn, timeout int, dst []byte) (Exchanger, error) {
39 c := &SimpleStreamClient{network: network, Server: server, Timeout: timeout, src: src, dst: socks5.ToAddress(dst[0], dst[1:len(dst)-2], dst[len(dst)-2:])}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected