// Create a new host-backed endpoint from the given fd and its corresponding
// notification queue.
Create a new host-backed endpoint from the given fd and its corresponding
notification queue.
// Create a new host - backed endpoint from the given fd and its corresponding // notification queue .
func newEndpoint(ctx context.Context, hostFD int, queue *waiter.Queue) (transport.Endpoint, error) {
	addr := fmt.Sprintf("hostfd:[%d]", hostFD)
	e, err := NewConnectedEndpoint(hostFD, addr)
	if err != nil {
		return nil, err.ToError()
	}
	ep := transport.NewExternal(ctx, e.stype, uniqueid.GlobalProviderFromContext(ctx), queue, e, e)
	return ep, nil
}
func newEndpoint ( ctx context . Context , hostFD int , queue * waiter . Queue ) ( transport . Endpoint , error ) { addr := fmt . Sprintf ( " " , hostFD ) e , err := NewConnectedEndpoint ( hostFD , addr ) if err != nil { return nil , err . ToError ( ) } ep := transport . NewExternal ( ctx , e . stype , uniqueid . GlobalProviderFromContext ( ctx ) , queue , e , e ) return ep , nil }
Create a new host-backed endpoint from the given fd and its corresponding
notification queue.
Create a new host - backed endpoint from the given fd and its corresponding notification queue .
// Set up an external transport.Endpoint using the host fd.