Xray-core/common/protocol/udp/packet.go
2020-12-04 09:36:16 +08:00

14 lines
275 B
Go

package udp
import (
"github.com/xtls/xray-core/common/buf"
"github.com/xtls/xray-core/common/net"
)
// Packet is a UDP packet together with its source and destination address.
type Packet struct {
Payload *buf.Buffer
Source net.Destination
Target net.Destination
}