package
0.0.0-20240503093246-678d81269f95
Repository: https://github.com/newinfooffical/core.git
Documentation: pkg.go.dev

# Functions

DecodePacket takes the contents of a UDP packet and decodes it into a UDT packet.
PacketTypeName returns a name describing the specified packet type.
RandomPacketSequence returns a random packet sequence.

# Constants

HsRefused notifies the peer of a connection refusal.
HsRendezvous represents an attempt to establish a new connection using mutual rendezvous packets.
HsRequest represents an attempt to establish a new connection.
HsResponse is a response to a handshake request.
HsResponse2 is an acknowledgement that a HsResponse was received.
MbFirst is the first packet in a multi-packet message.
MbLast is the last packet in a multi-packet message.
MbMiddle is neither the first nor last packet in a multi-packet message.
MbOnly is the only packet in this message.
TypeDGRAM describes a partially-reliable messaging protocol.
TypeSTREAM describes a reliable streaming protocol (e.g.

# Structs

Ack2Packet is a UDT packet acknowledging receipt of an ACK packet.
AckPacket is a UDT packet acknowledging previously-received data packets and describing the state of the link.
CongestionPacket is a (deprecated) UDT packet notifying the peer of increased congestion.
DataPacket is a UDT packet containing message data.
ErrPacket is a (undocumented) UDT packet describing an out-of-band error code.
HandshakePacket is a UDT packet used to negotiate a new connection.
KeepAlivePacket is a UDT packet used to keep a connection alive when no data is being sent.
MsgDropReqPacket is a UDT packet notifying the peer of expired packets not worth trying to send.
NakPacket is a UDT packet notifying the peer of lost packets.
PacketID represents a UDT packet ID sequence.
ShutdownPacket is a UDT packet notifying the peer of connection shutdown.
UserDefControlPacket is a UDT user-defined packet.

# Interfaces

ControlPacket represents a UDT control packet.
Packet represents a UDT packet.

# Type aliases

HandshakeReqType describes the type of handshake packet.
MessageBoundary flags for where this packet falls within a message.
PacketType describes the type of UDP packet we're dealing with.
SocketType describes the kind of socket this is (i.e.