portscanner

package module
v0.0.0-...-fa66f3d Latest Latest
Warning

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

Go to latest
Published: May 10, 2017 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultHostname string = "localhost"
)

Functions

func Available

func Available(port int) bool

Types

type Port

type Port int

func Get

func Get() Port

func GetWith

func GetWith(port int) Port

func (Port) Addr

func (p Port) Addr() string

func (Port) Listen

func (p Port) Listen() error

type Server

type Server struct {
	Hostname string
	Timeout  time.Duration
	Port     Port
}

func NewServer

func NewServer(hostname string) *Server

func (*Server) Scan

func (s *Server) Scan(port int) bool

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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