rawcon

package module
v0.0.0-...-44be58d Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2017 License: MIT Imports: 16 Imported by: 4 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

raw-conn

Documentation

Index

Constants

View Source
const (
	FIN = 1
	SYN = 2
	RST = 4
	PSH = 8
	ACK = 16
	URG = 32

	ECE = 1
	CWR = 2
	NS  = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RAWConn

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

func (*RAWConn) Close

func (raw *RAWConn) Close() (err error)

func (*RAWConn) GetMSS

func (raw *RAWConn) GetMSS() int

func (*RAWConn) LocalAddr

func (conn *RAWConn) LocalAddr() net.Addr

func (*RAWConn) Read

func (raw *RAWConn) Read(b []byte) (n int, err error)

func (*RAWConn) ReadFrom

func (raw *RAWConn) ReadFrom(b []byte) (n int, addr net.Addr, err error)

func (*RAWConn) ReadTCPLayer

func (raw *RAWConn) ReadTCPLayer() (tcp *tcpLayer, addr *net.UDPAddr, err error)

func (*RAWConn) RemoteAddr

func (conn *RAWConn) RemoteAddr() net.Addr

func (*RAWConn) SetDeadline

func (raw *RAWConn) SetDeadline(t time.Time) error

func (*RAWConn) SetReadDeadline

func (raw *RAWConn) SetReadDeadline(t time.Time) error

func (*RAWConn) SetWriteDeadline

func (raw *RAWConn) SetWriteDeadline(t time.Time) error

func (*RAWConn) Write

func (raw *RAWConn) Write(b []byte) (n int, err error)

func (*RAWConn) WriteTo

func (raw *RAWConn) WriteTo(b []byte, addr net.Addr) (n int, err error)

type RAWListener

type RAWListener struct {
	RAWConn
	// contains filtered or unexported fields
}

func (*RAWListener) GetMSSByAddr

func (listener *RAWListener) GetMSSByAddr(addr net.Addr) int

func (*RAWListener) LocalAddr

func (listener *RAWListener) LocalAddr() net.Addr

func (*RAWListener) ReadFrom

func (listener *RAWListener) ReadFrom(b []byte) (n int, addr net.Addr, err error)

func (*RAWListener) RemoteAddr

func (listener *RAWListener) RemoteAddr() net.Addr

func (*RAWListener) WriteTo

func (listener *RAWListener) WriteTo(b []byte, addr net.Addr) (n int, err error)

type Raw

type Raw struct {
	Mixed  bool
	NoHTTP bool
	TLS    bool
	Host   string
	DSCP   int
	IgnRST bool
	Hosts  []string
	Dummy  bool
}

func (*Raw) DialRAW

func (r *Raw) DialRAW(address string) (raw *RAWConn, err error)

func (*Raw) ListenRAW

func (r *Raw) ListenRAW(address string) (listener *RAWListener, err error)

Jump to

Keyboard shortcuts

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