Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StandardAddr net.Addr
StandardAddr is the standard net.Addr to communicate with the "other end" in PacketWire-generated PacketConns.
Functions ¶
func ToPacketConn ¶
func ToPacketConn(pw PacketWire) net.PacketConn
ToPacketConn converts a PacketWire to a PacketConn with a standard remote address.
Types ¶
type PacketWire ¶
type PacketWire interface { SendSegment(seg []byte, allowBlocking bool) (err error) RecvSegment(seg []byte) (n int, err error) }
PacketWire is the base "unreliable connection" primitive used in niaucchi5.
type URTCP ¶
type URTCP struct {
// contains filtered or unexported fields
}
URTCP implements "unreliable TCP". This is an unreliable PacketWire implementation over reliable net.Conn's like TCP, yet avoids excessive bufferbloat, "TCP over TCP" problems, etc.
func (*URTCP) RecvSegment ¶
RecvSegment receives a single segment.
Click to show internal directories.
Click to hide internal directories.