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

package utp

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

Index

Package Files

config.pb.go utp.go

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Config) Descriptor Uses

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

func (*Config) GetVersion Uses

func (m *Config) GetVersion() uint32

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) Reset Uses

func (m *Config) Reset()

func (*Config) String Uses

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown Uses

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal Uses

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge Uses

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size Uses

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal Uses

func (m *Config) XXX_Unmarshal(b []byte) error

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 7 packages (graph) and is imported by 6 packages. Updated 2019-02-04. Refresh now. Tools for package owners.