Documentation ¶
Index ¶
Constants ¶
View Source
const ( OptionKindEnd = 0 // End of option list OptionKindNOP = 1 OptionKindMSS = 2 OptionKindWScale = 3 )
View Source
const MaxSeqNum = 1<<32 - 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
This Client does not maintain a persistent connection
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn is a custom network connection that uses raw sockets
func (*Conn) RecvResponse ¶
RecvResponse receives all data from the GET request and returns a reader as a stream
func (*Conn) SendRequest ¶
SendRequest sends the request to the remote host.
type LinkedList ¶
type LinkedList struct {
// contains filtered or unexported fields
}
func NewLinkedList ¶
func NewLinkedList() *LinkedList
func (*LinkedList) InsertNode ¶
func (ll *LinkedList) InsertNode(newNode *Node)
InsertNode inserts a new Node in the linked list in the correct order based on sequence number.
func (*LinkedList) ToBytes ¶
func (ll *LinkedList) ToBytes() []byte
type LinkedListReader ¶
type LinkedListReader struct {
// contains filtered or unexported fields
}
LinkedListReader implements Reader interface for streaming
func NewLinkedListReader ¶
func NewLinkedListReader(list *LinkedList) *LinkedListReader
type Request ¶
type Response ¶
type TCPOptions ¶
type TCPOptions func(options *[]byte)
func WithMSS ¶
func WithMSS(mss uint16) TCPOptions
func WithWScale ¶
func WithWScale(wscale uint8) TCPOptions
Click to show internal directories.
Click to hide internal directories.