You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Xray-core/common/protocol/udp/packet.go

14 lines
275 B

4 years ago
package udp
import (
4 years ago
"github.com/xtls/xray-core/common/buf"
"github.com/xtls/xray-core/common/net"
4 years ago
)
// Packet is a UDP packet together with its source and destination address.
type Packet struct {
Payload *buf.Buffer
Source net.Destination
Target net.Destination
}