utp

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2021 License: MPL-2.0 Imports: 9 Imported by: 44

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_transport_internet_headers_utp_config_proto protoreflect.FileDescriptor

Functions

func New

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

New creates a new UTP header for the given config.

Types

type Config

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

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetVersion

func (x *Config) GetVersion() uint32

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type UTP

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

func (*UTP) Serialize

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

Serialize implements PacketHeader.

func (*UTP) Size

func (*UTP) Size() int32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL