mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-12 03:19:36 +03:00
v1.0.0
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 (
|
||||
"github.com/xtls/xray-core/v1/common/buf"
|
||||
"github.com/xtls/xray-core/v1/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