Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetSendChannel ¶
Types ¶
type Connection ¶
type Connection struct { // 数据包channel Channel *chan gopacket.Packet // 连接状态 State State // contains filtered or unexported fields }
TCP Connection
func NewConnection ¶
func NewConnection(channel *chan gopacket.Packet, request gopacket.Packet) *Connection
新建TCP连接
func (*Connection) WriteWindow ¶
func (conn *Connection) WriteWindow(data []byte, startSeq uint32)
TCP写入数据接口 每次最多发送接收方窗口大小的数据
Source Files
¶
Click to show internal directories.
Click to hide internal directories.