Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTCPBuffer = 128
Variables ¶
View Source
var ErrNoAvailableHosts = errors.New("no available hosts")
Functions ¶
This section is empty.
Types ¶
type Recv ¶
type Recv struct {
Listen string `short:"l" long:"listen" description:"host:port to listen on"`
}
type Send ¶
type TCPPlugin ¶
type TCPPlugin struct {
Address string `description:"host:port to listen (input) or send to (output)"`
}
func (*TCPPlugin) Description ¶
type TCPRecv ¶
type TCPRecv struct { Addr string Handler cypress.GeneratorHandler // contains filtered or unexported fields }
func NewTCPRecv ¶
func NewTCPRecv(host string, h cypress.GeneratorHandler) (*TCPRecv, error)
func (*TCPRecv) ListenAndAccept ¶
type TCPRecvGenerator ¶
type TCPRecvGenerator struct { *TCPRecv // contains filtered or unexported fields }
func NewTCPRecvGenerator ¶
func NewTCPRecvGenerator(host string) (*TCPRecvGenerator, error)
func (*TCPRecvGenerator) Close ¶
func (t *TCPRecvGenerator) Close() error
func (*TCPRecvGenerator) HandleGenerator ¶
func (t *TCPRecvGenerator) HandleGenerator(g cypress.Generator)
Click to show internal directories.
Click to hide internal directories.