stream_packet

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 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 {
	stream.Stream
	// contains filtered or unexported fields
}

Session wraps a stream in a session.

func NewSession

func NewSession(
	stream stream.Stream,
	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