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

Struct PacketServer

packetserver.go:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29)
30
31type PacketServer struct {
32 Client net.Conn
33 Password []byte
34 RB []byte
35 WB []byte
36 Timeout int
37 src string
38 dstb []byte
39}
40
41func NewPacketServer(password []byte, src string, client net.Conn, timeout int, dstb []byte) (Exchanger, error) {
42 s := &PacketServer{Password: password, Client: client, Timeout: timeout, src: src}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected