Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newTCP (0.29 sec)

  1. pkg/test/echo/server/endpoint/instance.go

    		case protocol.HBONE:
    			return newHBONE(cfg), nil
    		case protocol.HTTP, protocol.HTTPS:
    			return newHTTP(cfg), nil
    		case protocol.HTTP2, protocol.GRPC:
    			return newGRPC(cfg), nil
    		case protocol.TCP:
    			return newTCP(cfg), nil
    		case protocol.UDP:
    			return newUDP(cfg), nil
    		default:
    			return nil, fmt.Errorf("unsupported protocol: %s", cfg.Port.Protocol)
    		}
    	}
    
    	if len(cfg.UDSServer) > 0 {
    		return newHTTP(cfg), nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 16:20:31 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. pkg/test/echo/server/endpoint/tcp.go

    	"istio.io/istio/pkg/test/echo/common"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    var _ Instance = &tcpInstance{}
    
    type tcpInstance struct {
    	Config
    	l net.Listener
    }
    
    func newTCP(config Config) Instance {
    	return &tcpInstance{
    		Config: config,
    	}
    }
    
    func (s *tcpInstance) GetConfig() Config {
    	return s.Config
    }
    
    func (s *tcpInstance) Start(onReady OnReadyFunc) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 16:20:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top