14 lines
285 B
Go
Raw Permalink Normal View History

2019-01-05 19:49:21 +01:00
package udp
import (
2021-02-17 04:31:50 +08:00
"github.com/v2fly/v2ray-core/v4/common/buf"
"github.com/v2fly/v2ray-core/v4/common/net"
2019-01-05 19:49:21 +01: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
}