(password []byte, src string, client net.Conn, timeout int, 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} |
| 43 | s.RB = x.BP65507.Get().([]byte) |
| 44 | s.WB = x.BP65507.Get().([]byte) |
| 45 | s.dstb = dstb |
| 46 | return ServerGate(s) |
| 47 | } |
| 48 | |
| 49 | func (s *PacketServer) Exchange(remote net.Conn) error { |
| 50 | go func() { |
no test coverage detected