Documentation ¶
Index ¶
- func ReadUDPMsg(conn *net.UDPConn, payload []byte, oob []byte) (int, int, int, *net.UDPAddr, error)
- func RetrieveOriginalDest(oob []byte) net.Destination
- func SetOriginalDestOptions(fd int) error
- func TransmitSocket(src net.Addr, dst net.Addr) (net.Conn, error)
- type Dispatcher
- type Hub
- type HubOption
- type Payload
- type ResponseCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadUDPMsg ¶
func RetrieveOriginalDest ¶
func RetrieveOriginalDest(oob []byte) net.Destination
func SetOriginalDestOptions ¶
Types ¶
type Dispatcher ¶
func NewDispatcher ¶
func NewDispatcher(dispatcher core.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 ¶ added in v3.8.1
type HubOption func(h *Hub)
func HubCapacity ¶ added in v3.8.1
func HubReceiveOriginalDestination ¶ added in v3.8.1
type Payload ¶
type Payload struct { Content *buf.Buffer Source net.Destination OriginalDestination net.Destination }
Payload represents a single UDP payload.
Click to show internal directories.
Click to hide internal directories.