smtpd

package
v0.0.0-...-d934c3e Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2016 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	Printf(format string, args ...interface{}) error
	Reply(code int, messages ...string) error
	StartTLS(*tls.Config)
	ReadCommand(timeout int) (command, args string, err error)
	ReadDotBytes(timeout int) ([]byte, error)
	Close() error
	RemoteAddr() net.Addr
	Tarpit() (int, time.Duration, error)
}

func NewConnection

func NewConnection(conn net.Conn) Connection

type NetConnection

type NetConnection struct {
	// contains filtered or unexported fields
}

func (*NetConnection) Close

func (c *NetConnection) Close() error

func (*NetConnection) Printf

func (c *NetConnection) Printf(format string, args ...interface{}) error

func (*NetConnection) ReadCommand

func (c *NetConnection) ReadCommand(timeout int) (command, args string, err error)

func (*NetConnection) ReadDotBytes

func (c *NetConnection) ReadDotBytes(timeout int) ([]byte, error)

func (*NetConnection) RemoteAddr

func (c *NetConnection) RemoteAddr() net.Addr

func (*NetConnection) Reply

func (c *NetConnection) Reply(code int, messages ...string) error

func (*NetConnection) StartTLS

func (c *NetConnection) StartTLS(cfg *tls.Config)

func (*NetConnection) Tarpit

func (c *NetConnection) Tarpit() (int, time.Duration, error)

Jump to

Keyboard shortcuts

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