Documentation ¶
Index ¶
- func ReadUDPMsg(conn *net.UDPConn, payload []byte, oob []byte) (int, int, int, *net.UDPAddr, error)
- func RetrieveOriginalDest(oob []byte) v2net.Destination
- func SetOriginalDestOptions(fd int) error
- type Connection
- type ListenOption
- type TimedInboundRay
- type UDPHub
- type UDPPayloadHandler
- type UDPResponseCallback
- type UDPServer
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) v2net.Destination
func SetOriginalDestOptions ¶ added in v1.24.3
Types ¶
type Connection ¶
func (*Connection) Reusable ¶
func (this *Connection) Reusable() bool
func (*Connection) SetReusable ¶
func (this *Connection) SetReusable(b bool)
type ListenOption ¶ added in v1.24.3
type ListenOption struct { Callback UDPPayloadHandler ReceiveOriginalDest bool }
type TimedInboundRay ¶
func NewTimedInboundRay ¶
func NewTimedInboundRay(name string, inboundRay ray.InboundRay, server *UDPServer) *TimedInboundRay
func (*TimedInboundRay) InboundInput ¶
func (this *TimedInboundRay) InboundInput() ray.OutputStream
func (*TimedInboundRay) InboundOutput ¶
func (this *TimedInboundRay) InboundOutput() ray.InputStream
func (*TimedInboundRay) Monitor ¶
func (this *TimedInboundRay) Monitor()
func (*TimedInboundRay) Release ¶
func (this *TimedInboundRay) Release()
type UDPHub ¶
func (*UDPHub) Connection ¶ added in v1.24.3
Connection return the net.Conn underneath this hub. Private: Visible for testing only
type UDPPayloadHandler ¶
type UDPPayloadHandler func(*alloc.Buffer, *proxy.SessionInfo)
type UDPResponseCallback ¶
type UDPResponseCallback func(destination v2net.Destination, payload *alloc.Buffer)
type UDPServer ¶
func NewUDPServer ¶
func NewUDPServer(meta *proxy.InboundHandlerMeta, packetDispatcher dispatcher.PacketDispatcher) *UDPServer
func (*UDPServer) Dispatch ¶
func (this *UDPServer) Dispatch(session *proxy.SessionInfo, payload *alloc.Buffer, callback UDPResponseCallback)
Click to show internal directories.
Click to hide internal directories.