mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-03 00:22:05 +00:00
move udp packet to protocol
This commit is contained in:
4 files changed
+25
-17
No files matched your search
@@ -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
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
package udp
|
||||
Reference in new issue
Block a user