1
0
Fork 0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-01-12 21:53:33 +02:00
Xray-core/common/protocol/udp/packet.go

14 lines
275 B
Go
Raw Normal View History

2020-11-25 13:01:53 +02:00
package udp
import (
2020-12-04 03:36:16 +02:00
"github.com/xtls/xray-core/common/buf"
"github.com/xtls/xray-core/common/net"
2020-11-25 13:01:53 +02:00
)
// Packet is a UDP packet together with its source and destination address.
type Packet struct {
Payload *buf.Buffer
Source net.Destination
Target net.Destination
}