packet.go 275 B

12345678910111213
  1. package udp
  2. import (
  3. "github.com/xtls/xray-core/common/buf"
  4. "github.com/xtls/xray-core/common/net"
  5. )
  6. // Packet is a UDP packet together with its source and destination address.
  7. type Packet struct {
  8. Payload *buf.Buffer
  9. Source net.Destination
  10. Target net.Destination
  11. }