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 UDPPayload
- type UDPPayloadHandler
- type UDPPayloadQueue
- type UDPResponseCallback
- type UDPServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadUDPMsg ¶
func RetrieveOriginalDest ¶
func RetrieveOriginalDest(oob []byte) v2net.Destination
func SetOriginalDestOptions ¶ added in v1.24.2
Types ¶
type Connection ¶ added in v1.17.1
func (*Connection) Reusable ¶ added in v1.17.1
func (v *Connection) Reusable() bool
func (*Connection) SetReusable ¶ added in v1.17.1
func (v *Connection) SetReusable(b bool)
type ListenOption ¶ added in v1.24.2
type ListenOption struct { Callback UDPPayloadHandler ReceiveOriginalDest bool Concurrency int }
type TimedInboundRay ¶ added in v1.17.1
func NewTimedInboundRay ¶ added in v1.17.1
func NewTimedInboundRay(name string, inboundRay ray.InboundRay, server *UDPServer) *TimedInboundRay
func (*TimedInboundRay) InboundInput ¶ added in v1.17.1
func (v *TimedInboundRay) InboundInput() ray.OutputStream
func (*TimedInboundRay) InboundOutput ¶ added in v1.17.1
func (v *TimedInboundRay) InboundOutput() ray.InputStream
func (*TimedInboundRay) Monitor ¶ added in v1.17.1
func (v *TimedInboundRay) Monitor()
func (*TimedInboundRay) Release ¶ added in v1.17.1
func (v *TimedInboundRay) Release()
type UDPHub ¶ added in v1.17.1
func (*UDPHub) Connection ¶ added in v1.24.2
Connection return the net.Conn underneath v hub. Private: Visible for testing only
type UDPPayload ¶
type UDPPayload struct {
// contains filtered or unexported fields
}
type UDPPayloadHandler ¶ added in v1.17.1
type UDPPayloadHandler func(*buf.Buffer, *proxy.SessionInfo)
type UDPPayloadQueue ¶
type UDPPayloadQueue struct {
// contains filtered or unexported fields
}
func NewUDPPayloadQueue ¶
func NewUDPPayloadQueue(option ListenOption) *UDPPayloadQueue
func (*UDPPayloadQueue) Close ¶
func (v *UDPPayloadQueue) Close()
func (*UDPPayloadQueue) Dequeue ¶
func (v *UDPPayloadQueue) Dequeue(queue <-chan UDPPayload)
func (*UDPPayloadQueue) Enqueue ¶
func (v *UDPPayloadQueue) Enqueue(payload UDPPayload)
type UDPResponseCallback ¶ added in v1.17.1
type UDPResponseCallback func(destination v2net.Destination, payload *buf.Buffer)
type UDPServer ¶ added in v1.17.1
func NewUDPServer ¶ added in v1.17.1
func NewUDPServer(packetDispatcher dispatcher.PacketDispatcher) *UDPServer
func (*UDPServer) Dispatch ¶ added in v1.17.1
func (v *UDPServer) Dispatch(session *proxy.SessionInfo, payload *buf.Buffer, callback UDPResponseCallback)
Click to show internal directories.
Click to hide internal directories.