| 23 | ) |
| 24 | |
| 25 | type SimplePacketServer struct { |
| 26 | Client net.Conn |
| 27 | Password []byte |
| 28 | RB []byte |
| 29 | WB []byte |
| 30 | Timeout int |
| 31 | src string |
| 32 | dst string |
| 33 | dstl int |
| 34 | } |
| 35 | |
| 36 | func NewSimplePacketServer(password []byte, src string, client net.Conn, timeout int, dst []byte) (Exchanger, error) { |
| 37 | s := &SimplePacketServer{Password: password, Client: client, Timeout: timeout, src: src} |
nothing calls this directly
no outgoing calls
no test coverage detected