Documentation ¶
Index ¶
- Variables
- 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 Dispatcher
- type Hub
- type HubOption
- type ResponseCallback
Constants ¶
This section is empty.
Variables ¶
View Source
var File_transport_internet_udp_config_proto protoreflect.FileDescriptor
Functions ¶
func DialDispatcher ¶
func DialDispatcher(ctx context.Context, dispatcher routing.Dispatcher) (net.PacketConn, error)
func ReadUDPMsg ¶ added in v1.24.4
func RetrieveOriginalDest ¶ added in v1.24.2
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 Dispatcher ¶
func NewDispatcher ¶
func NewDispatcher(dispatcher routing.Dispatcher, callback ResponseCallback) *Dispatcher
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 HubOption ¶
type HubOption func(h *Hub)
func HubCapacity ¶
Click to show internal directories.
Click to hide internal directories.