mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-22 13:16:07 +03:00
14 lines
281 B
Go
14 lines
281 B
Go
|
package udp
|
||
|
|
||
|
import (
|
||
|
"github.com/xtls/xray-core/v1/common/buf"
|
||
|
"github.com/xtls/xray-core/v1/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
|
||
|
}
|