Documentation ¶
Index ¶
- Variables
- func CopyPacketConn(dst internet.AbstractPacketConnWriter, src internet.AbstractPacketConnReader, ...) error
- func DialDispatcher(ctx context.Context, dispatcher routing.Dispatcher) (net.PacketConn, error)
- func ReadUDPMsg(conn *net.UDPConn, payload []byte, oob []byte) (int, int, int, *net.UDPAddr, error)
- func RetrieveOriginalDest(oob []byte) net.Destination
- type Config
- type CopyOption
- type Dispatcher
- type DispatcherConnectionTerminationSignalReceiver
- type DispatcherI
- type Hub
- type HubOption
- type PacketAddrDispatcher
- type PacketAddrDispatcherCreator
- type ResponseCallback
Constants ¶
This section is empty.
Variables ¶
View Source
var DispatcherConnectionTerminationSignalReceiverMark = "DispatcherConnectionTerminationSignalReceiverMark"
View Source
var File_transport_internet_udp_config_proto protoreflect.FileDescriptor
Functions ¶
func CopyPacketConn ¶ added in v5.0.2
func CopyPacketConn(dst internet.AbstractPacketConnWriter, src internet.AbstractPacketConnReader, options ...CopyOption) error
func DialDispatcher ¶
func DialDispatcher(ctx context.Context, dispatcher routing.Dispatcher) (net.PacketConn, error)
func ReadUDPMsg ¶
func RetrieveOriginalDest ¶
func RetrieveOriginalDest(oob []byte) net.Destination
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) Descriptor
deprecated
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type CopyOption ¶ added in v5.0.2
type CopyOption func(*copyHandler)
func UpdateActivity ¶ added in v5.0.2
func UpdateActivity(timer signal.ActivityUpdater) CopyOption
type Dispatcher ¶
func (*Dispatcher) Close ¶ added in v5.0.2
func (v *Dispatcher) Close() error
func (*Dispatcher) Dispatch ¶
func (v *Dispatcher) Dispatch(ctx context.Context, destination net.Destination, payload *buf.Buffer)
func (*Dispatcher) RemoveRay ¶
func (v *Dispatcher) RemoveRay(dest net.Destination)
type DispatcherConnectionTerminationSignalReceiver ¶ added in v5.9.0
type DispatcherI ¶ added in v5.0.2
type DispatcherI interface { common.Closable Dispatch(ctx context.Context, destination net.Destination, payload *buf.Buffer) }
func NewSplitDispatcher ¶ added in v5.0.2
func NewSplitDispatcher(dispatcher routing.Dispatcher, callback ResponseCallback) DispatcherI
type HubOption ¶
type HubOption func(h *Hub)
func HubCapacity ¶
type PacketAddrDispatcher ¶ added in v5.0.2
type PacketAddrDispatcher struct {
// contains filtered or unexported fields
}
func (PacketAddrDispatcher) Close ¶ added in v5.0.2
func (p PacketAddrDispatcher) Close() error
func (PacketAddrDispatcher) Dispatch ¶ added in v5.0.2
func (p PacketAddrDispatcher) Dispatch(ctx context.Context, destination net.Destination, payload *buf.Buffer)
type PacketAddrDispatcherCreator ¶ added in v5.0.2
type PacketAddrDispatcherCreator struct {
// contains filtered or unexported fields
}
func NewPacketAddrDispatcherCreator ¶ added in v5.0.2
func NewPacketAddrDispatcherCreator(ctx context.Context) PacketAddrDispatcherCreator
func (*PacketAddrDispatcherCreator) NewPacketAddrDispatcher ¶ added in v5.0.2
func (pdc *PacketAddrDispatcherCreator) NewPacketAddrDispatcher( dispatcher routing.Dispatcher, callback ResponseCallback, ) DispatcherI
Click to show internal directories.
Click to hide internal directories.