Versions in this module Expand all Collapse all v1 v1.24.4 Aug 19, 2016 Changes in this version + 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 struct + func (this *Connection) Reusable() bool + func (this *Connection) SetReusable(b bool) + type ListenOption struct + Callback UDPPayloadHandler + ReceiveOriginalDest bool + type TimedInboundRay struct + func NewTimedInboundRay(name string, inboundRay ray.InboundRay, server *UDPServer) *TimedInboundRay + func (this *TimedInboundRay) InboundInput() ray.OutputStream + func (this *TimedInboundRay) InboundOutput() ray.InputStream + func (this *TimedInboundRay) Monitor() + func (this *TimedInboundRay) Release() + type UDPHub struct + func ListenUDP(address v2net.Address, port v2net.Port, option ListenOption) (*UDPHub, error) + func (this *UDPHub) Addr() net.Addr + func (this *UDPHub) Close() + func (this *UDPHub) Connection() net.Conn + func (this *UDPHub) Running() bool + func (this *UDPHub) WriteTo(payload []byte, dest v2net.Destination) (int, error) + type UDPPayloadHandler func(*alloc.Buffer, *proxy.SessionInfo) + type UDPResponseCallback func(destination v2net.Destination, payload *alloc.Buffer) + type UDPServer struct + func NewUDPServer(meta *proxy.InboundHandlerMeta, packetDispatcher dispatcher.PacketDispatcher) *UDPServer + func (this *UDPServer) Dispatch(session *proxy.SessionInfo, payload *alloc.Buffer, ...) + func (this *UDPServer) RemoveRay(name string) Incompatible versions in this module v3.50.2+incompatible Oct 29, 2018