move udp packet to protocol

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

No files matched your search

+13
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
}
+1
View File
@@ -0,0 +1 @@
package udp