import "v2ray.com/core/testing/servers/tcp"
PickPort returns an unused TCP port in the system. The port returned is highly likely to be unused, but not guaranteed.
type Server struct { Port net.Port MsgProcessor func(msg []byte) []byte ShouldClose bool SendFirst []byte Listen net.Address // contains filtered or unexported fields }
func (server *Server) Start() (net.Destination, error)
func (server *Server) StartContext(ctx context.Context, sockopt *internet.SocketConfig) (net.Destination, error)
Package tcp imports 9 packages (graph). Updated 2019-03-30. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).