stream_packet

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 5 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 proto.Message) error

RecvMsg tries to receive a message on the wire.

func (*Session) SendMsg

func (s *Session) SendMsg(msg proto.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