mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-18 02:16:10 -05:00
14 lines
253 B
Go
14 lines
253 B
Go
|
package udp
|
||
|
|
||
|
import (
|
||
|
"v2ray.com/core/common/buf"
|
||
|
"v2ray.com/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
|
||
|
}
|