Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FramedStream ¶
type FramedStream struct { Trans Transport // contains filtered or unexported fields }
FramedStream represents a stream with message semantics
func NewFramedStreamFromTransport ¶
func NewFramedStreamFromTransport(t Transport) *FramedStream
NewFramedStreamFromTransport creates a message stream from transport t
func (*FramedStream) Close ¶
func (fs *FramedStream) Close() error
Close closes the transport stream
func (*FramedStream) ReadMsg ¶
func (fs *FramedStream) ReadMsg() ([]byte, error)
ReadMsg reads a io4edge standard message from transport stream
func (*FramedStream) WriteMsg ¶
func (fs *FramedStream) WriteMsg(payload []byte) error
WriteMsg writes io4edge standard message to the transport stream
Click to show internal directories.
Click to hide internal directories.