Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStreamDialer ¶
func NewStreamDialer(dialer transport.StreamDialer, disorderPacketN int) (transport.StreamDialer, error)
NewStreamDialer creates a transport.StreamDialer. It works like this: * Wait for disorderPacketN'th call to Write. All Write requests before and after the target packet are written normally. * Send the disorderPacketN'th packet with TTL == 1. * This packet is dropped somewhere in the network and never reaches the server. * TTL is restored. * The next part of data is sent normally. * Server notices the lost fragment and requests re-transmission of lost packet.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.