Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Debug ¶
type Debug struct {
// contains filtered or unexported fields
}
func (*Debug) GetSessions ¶
func (d *Debug) GetSessions() (infos []DebugSessionInfo)
type DebugSessionInfo ¶
type PacketConn ¶
type PacketConn struct { *network.PacketConn Debug Debug // contains filtered or unexported fields }
func NewPacketConn ¶
func NewPacketConn(secret ed25519.PrivateKey, options ...network.Option) (*PacketConn, error)
NewPacketConn returns a *PacketConn struct which implements the types.PacketConn interface.
func (*PacketConn) MTU ¶
func (pc *PacketConn) MTU() uint64
MTU returns the maximum transmission unit of the PacketConn, i.e. maximum safe message size to send over the network.
Click to show internal directories.
Click to hide internal directories.