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 PayloadHandler
- type ResponseCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadUDPMsg ¶ added in v1.24.4
func RetrieveOriginalDest ¶ added in v1.24.3
func RetrieveOriginalDest(oob []byte) net.Destination
func SetOriginalDestOptions ¶ added in v1.24.3
Types ¶
type Dispatcher ¶
func NewDispatcher ¶
func NewDispatcher(dispatcher core.Dispatcher) *Dispatcher
func (*Dispatcher) Dispatch ¶
func (v *Dispatcher) Dispatch(ctx context.Context, destination net.Destination, payload *buf.Buffer, callback ResponseCallback)
func (*Dispatcher) RemoveRay ¶
func (v *Dispatcher) RemoveRay(dest net.Destination)
type HubOption ¶
type HubOption func(h *Hub)
func HubCapacity ¶
type Payload ¶
type Payload struct {
// contains filtered or unexported fields
}
Payload represents a single UDP payload.
type PayloadHandler ¶
type PayloadHandler func(payload *buf.Buffer, source net.Destination, originalDest net.Destination)
PayloadHandler is function to handle Payload.
type ResponseCallback ¶
Click to show internal directories.
Click to hide internal directories.