v2ray-core: github.com/v2ray/v2ray-core/transport/internet/headers/utp Index | Files

package utp

import "github.com/v2ray/v2ray-core/transport/internet/headers/utp"

Index

Package Files

config.pb.go utp.go

Variables

var File_transport_internet_headers_utp_config_proto protoreflect.FileDescriptor

func New Uses

func New(ctx context.Context, config interface{}) (interface{}, error)

New creates a new UTP header for the given config.

type Config Uses

type Config struct {
    Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
    // contains filtered or unexported fields
}

func (*Config) Descriptor Uses

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetVersion Uses

func (x *Config) GetVersion() uint32

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) ProtoReflect Uses

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset Uses

func (x *Config) Reset()

func (*Config) String Uses

func (x *Config) String() string

type UTP Uses

type UTP struct {
    // contains filtered or unexported fields
}

func (*UTP) Serialize Uses

func (u *UTP) Serialize(b []byte)

Serialize implements PacketHeader.

func (*UTP) Size Uses

func (*UTP) Size() int32

Package utp imports 9 packages (graph). Updated 2020-09-12. Refresh now. Tools for package owners.