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 DispatcherI
- type Hub
- type HubOption
- type PacketAddrDispatcher
- type PacketAddrDispatcherCreator
- type ResponseCallback
Constants ¶
This section is empty.
Variables ¶
View Source
var File_transport_internet_udp_config_proto protoreflect.FileDescriptor
Functions ¶
func CopyPacketConn ¶
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 ¶
type CopyOption func(*copyHandler)
func UpdateActivity ¶
func UpdateActivity(timer signal.ActivityUpdater) CopyOption
type Dispatcher ¶
func (*Dispatcher) Close ¶
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 DispatcherI ¶
type DispatcherI interface { common.Closable Dispatch(ctx context.Context, destination net.Destination, payload *buf.Buffer) }
func NewSplitDispatcher ¶
func NewSplitDispatcher(dispatcher routing.Dispatcher, callback ResponseCallback) DispatcherI
type HubOption ¶
type HubOption func(h *Hub)
func HubCapacity ¶
type PacketAddrDispatcher ¶
type PacketAddrDispatcher struct {
// contains filtered or unexported fields
}
func (PacketAddrDispatcher) Close ¶
func (p PacketAddrDispatcher) Close() error
func (PacketAddrDispatcher) Dispatch ¶
func (p PacketAddrDispatcher) Dispatch(ctx context.Context, destination net.Destination, payload *buf.Buffer)
type PacketAddrDispatcherCreator ¶
type PacketAddrDispatcherCreator struct {
// contains filtered or unexported fields
}
func NewPacketAddrDispatcherCreator ¶
func NewPacketAddrDispatcherCreator(ctx context.Context) PacketAddrDispatcherCreator
func (*PacketAddrDispatcherCreator) NewPacketAddrDispatcher ¶
func (pdc *PacketAddrDispatcherCreator) NewPacketAddrDispatcher( dispatcher routing.Dispatcher, callback ResponseCallback, ) DispatcherI
Click to show internal directories.
Click to hide internal directories.