pop3d

package
v0.0.0-...-9d0575d Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2014 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Real server code starts here

func New

func New(db *db.Database) *Server

Init a new Server object

func (*Server) Drain

func (s *Server) Drain()

Drain causes the caller to block until all active POP3 sessions have finished

func (*Server) Start

func (s *Server) Start()

Main listener loop

func (*Server) Stop

func (s *Server) Stop()

Stop requests the POP3 server closes it's listener

type Session

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

func NewSession

func NewSession(server *Server, id int, conn net.Conn) *Session

func (*Session) String

func (ses *Session) String() string

type State

type State int
const (
	AUTHORIZATION State = iota // The client must now identify and authenticate
	TRANSACTION                // Mailbox open, client may now issue commands
	QUIT
)

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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