Documentation ¶
Overview ¶
Package transmitter
packet layer:
+---------------------------------------------------------------+ | symbol(2) | blank(1) | length(2) | blank(1) | payload(n) ... | +---------------------------------------------------------------+ |<- header(6) ->|-- data(n) ->| +---------------------------------------------------------------+ |<- packet(6+n) ->| +---------------------------------------------------------------+
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadPacket = errors.New("bad packet") ErrBadHeader = errors.New("bad header") )
View Source
var ( DefaultSymbol = []byte{255, 254} Empty = make([]byte, 0) Blank = byte(0) )
Functions ¶
This section is empty.
Types ¶
type ConcurrencyIO ¶ added in v0.0.2
type ConcurrencyIO struct {
// contains filtered or unexported fields
}
func WrapConcurrentConn ¶ added in v0.0.2
func WrapConcurrentConn(conn io.ReadWriteCloser) *ConcurrencyIO
func (*ConcurrencyIO) Close ¶ added in v0.0.2
func (io *ConcurrencyIO) Close() error
Click to show internal directories.
Click to hide internal directories.