receiver

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TCP_RESP_ACPT = "ACCEPTED"
	TCP_RESP_SENT = "SENT"
	TCP_RESP_PSNT = "PART_SENT"
	TCP_RESP_FAIL = "FAILED"
	TCP_RESP_INVD = "INVALID"
	TCP_RESP_TIME = "TIMEOUT"
	TCP_RESP_UNRT = "UNROUTABLE"
	TCP_RESP_THRT = "THROTTLED"
)
View Source
const (
	MaxTCPBufSize = 65536
)

Variables

View Source
var (
	ErrMalformedPacket = fmt.Errorf("Malformed packet")
	ErrEmptyBody       = fmt.Errorf("Empty message body")
)
View Source
var (
	TcpMsgSendTimeout = 100 * time.Millisecond
)

Functions

func NewTCP

func NewTCP(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