pingtcp

package
v0.0.0-...-4613a89 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RcvPkg

func RcvPkg(saddr string, rn uint8, taskMap map[string]*pingbase.PingTask, syncFlag *pingbase.SyncFlag)

Types

type TCPHeader

type TCPHeader struct {
	SrcPort       uint16
	DstPort       uint16
	SeqNum        uint32
	AckNum        uint32
	Flags         uint16
	Window        uint16
	ChkSum        uint16
	UrgentPointer uint16
}

tcp header

type TCPOption

type TCPOption struct {
	Kind   uint8
	Length uint8
	Data   []byte
}

tcp option

type Tcp4

type Tcp4 struct {
	Task *pingbase.PingTask
}

func (*Tcp4) SendPkg

func (t *Tcp4) SendPkg(syncFlag *pingbase.SyncFlag)

Jump to

Keyboard shortcuts

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