receiver

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxTCPBufSize = 65536

	ConnReadTimeout  = 1 * time.Second
	ConnWriteTimeout = 1 * time.Second
)

Variables

View Source
var (
	TcpRespAcpt = []byte("ACCEPTED")
	TcpRespSent = []byte("SENT")
	TcpRespPsnt = []byte("PART_SENT")
	TcpRespFail = []byte("FAILED")
	TcpRespInvd = []byte("INVALID")
	TcpRespTime = []byte("TIMEOUT")
	TcpRespUnrt = []byte("UNROUTABLE")
	TcpRespThrt = []byte("THROTTLED")

	ErrMalformedPacket = fmt.Errorf("Malformed packet")
	ErrEmptyBody       = fmt.Errorf("Empty message body")

	TcpMsgSendTimeout = 100 * time.Millisecond
)

Functions

func New added in v0.0.2

func New(name string, params core.Params) (core.Link, error)

Types

type TCP

type TCP struct {
	Name string

	*core.Connector
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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