packetconn

package
v5.17.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_transport_internet_request_assembler_packetconn_packetConn_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	UnderlyingTransportSetting *anypb.Any `` /* 141-byte string literal not displayed */
	UnderlyingTransportName    string     `` /* 132-byte string literal not displayed */
	MaxWriteDelay              int32      `protobuf:"varint,3,opt,name=max_write_delay,json=maxWriteDelay,proto3" json:"max_write_delay,omitempty"`
	MaxRequestSize             int32      `protobuf:"varint,4,opt,name=max_request_size,json=maxRequestSize,proto3" json:"max_request_size,omitempty"`
	PollingIntervalInitial     int32      `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ClientConfig) Descriptor deprecated

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

Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.

func (*ClientConfig) GetMaxRequestSize

func (x *ClientConfig) GetMaxRequestSize() int32

func (*ClientConfig) GetMaxWriteDelay

func (x *ClientConfig) GetMaxWriteDelay() int32

func (*ClientConfig) GetPollingIntervalInitial

func (x *ClientConfig) GetPollingIntervalInitial() int32

func (*ClientConfig) GetUnderlyingTransportName

func (x *ClientConfig) GetUnderlyingTransportName() string

func (*ClientConfig) GetUnderlyingTransportSetting

func (x *ClientConfig) GetUnderlyingTransportSetting() *anypb.Any

func (*ClientConfig) ProtoMessage

func (*ClientConfig) ProtoMessage()

func (*ClientConfig) ProtoReflect

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

func (*ClientConfig) Reset

func (x *ClientConfig) Reset()

func (*ClientConfig) String

func (x *ClientConfig) String() string

type PacketBundle

type PacketBundle interface {
	Overhead() int
	WriteToBundle(b []byte, writer io.Writer) (err error)
	ReadFromBundle(writer io.Reader) (b []byte, err error)
}

func NewPacketBundle

func NewPacketBundle() PacketBundle

type ServerConfig

type ServerConfig struct {
	UnderlyingTransportSetting     *anypb.Any `` /* 141-byte string literal not displayed */
	UnderlyingTransportName        string     `` /* 132-byte string literal not displayed */
	MaxWriteSize                   int32      `protobuf:"varint,3,opt,name=max_write_size,json=maxWriteSize,proto3" json:"max_write_size,omitempty"`
	MaxWriteDurationMs             int32      `protobuf:"varint,4,opt,name=max_write_duration_ms,json=maxWriteDurationMs,proto3" json:"max_write_duration_ms,omitempty"`
	MaxSimultaneousWriteConnection int32      `` /* 156-byte string literal not displayed */
	PacketWritingBuffer            int32      `protobuf:"varint,6,opt,name=packet_writing_buffer,json=packetWritingBuffer,proto3" json:"packet_writing_buffer,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerConfig) Descriptor deprecated

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

Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.

func (*ServerConfig) GetMaxSimultaneousWriteConnection

func (x *ServerConfig) GetMaxSimultaneousWriteConnection() int32

func (*ServerConfig) GetMaxWriteDurationMs

func (x *ServerConfig) GetMaxWriteDurationMs() int32

func (*ServerConfig) GetMaxWriteSize

func (x *ServerConfig) GetMaxWriteSize() int32

func (*ServerConfig) GetPacketWritingBuffer

func (x *ServerConfig) GetPacketWritingBuffer() int32

func (*ServerConfig) GetUnderlyingTransportName

func (x *ServerConfig) GetUnderlyingTransportName() string

func (*ServerConfig) GetUnderlyingTransportSetting

func (x *ServerConfig) GetUnderlyingTransportSetting() *anypb.Any

func (*ServerConfig) ProtoMessage

func (*ServerConfig) ProtoMessage()

func (*ServerConfig) ProtoReflect

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

func (*ServerConfig) Reset

func (x *ServerConfig) Reset()

func (*ServerConfig) String

func (x *ServerConfig) String() string

Jump to

Keyboard shortcuts

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