github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/common/protocol/udp/packet.go (about)

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