stream_packet

package
v0.40.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	io.ReadWriteCloser
	// contains filtered or unexported fields
}

Session wraps a stream in a session.

func NewSession

func NewSession(
	stream io.ReadWriteCloser,
	maxMessageSize uint32,
) *Session

NewSession builds a new session.

func (*Session) RecvMsg

func (s *Session) RecvMsg(msg protobuf_go_lite.Message) error

RecvMsg tries to receive a message on the wire.

func (*Session) SendMsg

func (s *Session) SendMsg(msg protobuf_go_lite.Message) error

SendMsg tries to send a message on the wire.

Jump to

Keyboard shortcuts

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