1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-29 09:09:07 -04:00

move udp packet to protocol

This commit is contained in:
Darien Raymond
2019-01-05 19:49:21 +01:00
parent 06f989717b
commit 21f8bfe476
4 changed files with 25 additions and 17 deletions

View File

@@ -0,0 +1,13 @@
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
}

View File

@@ -0,0 +1 @@
package udp