tcp

package
v0.0.0-...-ec228a3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuffioEchoHandler

func BuffioEchoHandler(conn net.Conn)

func EchoHandler

func EchoHandler(conn net.Conn)

handler function to echo received data

func GetInterpreterCommand

func GetInterpreterCommand() *exec.Cmd

Returns interpreter as string based on OS

func HandleNcConn

func HandleNcConn(conn net.Conn)

func HandleNcConnPipe

func HandleNcConnPipe(conn net.Conn)

func HandleProxyRequest

func HandleProxyRequest(src net.Conn, addr string)

func IoCopyHandler

func IoCopyHandler(conn net.Conn)

func StartListener

func StartListener(port int, handler connHandler)

func StartScanner

func StartScanner(startPort int, endPort int, host string, timeout int)

func StartTcpProxy

func StartTcpProxy(listenPort int, remoteAddr string)

func StartWorkerScanner

func StartWorkerScanner()

Types

type Flusher

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

func NewFlusher

func NewFlusher(w io.Writer) *Flusher

func (*Flusher) Write

func (f *Flusher) Write(b []byte) (int, error)

type Scanner

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

func (*Scanner) TestAllConnections

func (s *Scanner) TestAllConnections(network string)

func (*Scanner) TestConnection

func (s *Scanner) TestConnection(network string, port int)

Jump to

Keyboard shortcuts

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