import "github.com/v2ray/v2ray-core/transport/internet/udp"
config.go config.pb.go dialer.go dispatcher.go errors.generated.go hub.go hub_linux.go udp.go
var File_transport_internet_udp_config_proto protoreflect.FileDescriptor
func DialDispatcher(ctx context.Context, dispatcher routing.Dispatcher) (net.PacketConn, error)
func ReadUDPMsg(conn *net.UDPConn, payload []byte, oob []byte) (int, int, int, *net.UDPAddr, error)
func RetrieveOriginalDest(oob []byte) net.Destination
type Config struct {
// contains filtered or unexported fields
}
Deprecated: Use Config.ProtoReflect.Descriptor instead.
func (x *Config) ProtoReflect() protoreflect.Message
func NewDispatcher(dispatcher routing.Dispatcher, callback ResponseCallback) *Dispatcher
func (v *Dispatcher) Dispatch(ctx context.Context, destination net.Destination, payload *buf.Buffer)
func (v *Dispatcher) RemoveRay(dest net.Destination)
type Hub struct {
// contains filtered or unexported fields
}
func ListenUDP(ctx context.Context, address net.Address, port net.Port, streamSettings *internet.MemoryStreamConfig, options ...HubOption) (*Hub, error)
Addr implements net.Listener.
Close implements net.Listener.
Package udp imports 21 packages (graph) and is imported by 2 packages. Updated 2020-11-03. Refresh now. Tools for package owners.