core: v2ray.com/core/testing/servers/udp Index | Files

package udp

import "v2ray.com/core/testing/servers/udp"

Index

Package Files

port.go udp.go

func PickPort Uses

func PickPort() net.Port

PickPort returns an unused UDP port in the system. The port returned is highly likely to be unused, but not guaranteed.

type Server Uses

type Server struct {
    Port         net.Port
    MsgProcessor func(msg []byte) []byte
    // contains filtered or unexported fields
}

func (*Server) Close Uses

func (server *Server) Close() error

func (*Server) Start Uses

func (server *Server) Start() (net.Destination, error)

Package udp imports 3 packages (graph). Updated 2019-01-06. Refresh now. Tools for package owners.