| 29 | ) |
| 30 | |
| 31 | type 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 | |
| 41 | func 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} |
nothing calls this directly
no outgoing calls
no test coverage detected