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:
13
common/protocol/udp/packet.go
Normal file
13
common/protocol/udp/packet.go
Normal 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
common/protocol/udp/udp.go
Normal file
1
common/protocol/udp/udp.go
Normal file
@@ -0,0 +1 @@
|
||||
package udp
|
||||
Reference in New Issue
Block a user