Sha256: 00ffe3abf854aeac6e022f5bdd32ac320cbb6a3e6c70863adc0134ec1da26bce

Contents?: true

Size: 1.72 KB

Versions: 23

Compression:

Stored size: 1.72 KB

Contents

// Copyright 2022 The gRPC Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef GRPC_SRC_CORE_LIB_IOMGR_EVENT_ENGINE_SHIMS_ENDPOINT_H
#define GRPC_SRC_CORE_LIB_IOMGR_EVENT_ENGINE_SHIMS_ENDPOINT_H
#include <grpc/support/port_platform.h>

#include <grpc/event_engine/event_engine.h>

#include "src/core/lib/iomgr/endpoint.h"

namespace grpc_event_engine {
namespace experimental {

/// Creates an internal grpc_endpoint struct from an EventEngine Endpoint.
/// Server code needs to create grpc_endpoints after the EventEngine has made
/// connections.
grpc_endpoint* grpc_event_engine_endpoint_create(
    std::unique_ptr<EventEngine::Endpoint> ee_endpoint);

/// Returns true if the passed endpoint is an event engine shim endpoint.
bool grpc_is_event_engine_endpoint(grpc_endpoint* ep);

/// Destroys the passed in event engine shim endpoint and schedules the
/// asynchronous execution of the on_release_fd callback. The int pointer fd is
/// set to the underlying endpoint's file descriptor.
void grpc_event_engine_endpoint_destroy_and_release_fd(
    grpc_endpoint* ep, int* fd, grpc_closure* on_release_fd);

}  // namespace experimental
}  // namespace grpc_event_engine

#endif  // GRPC_SRC_CORE_LIB_IOMGR_EVENT_ENGINE_SHIMS_ENDPOINT_H

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
grpc-1.58.3 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.59.5 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.60.2 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.60.0 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.60.0.pre1 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.59.2 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.59.0 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.58.0 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.58.0.pre1 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.57.0 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.54.3 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.53.2 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.55.3 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.57.0.pre1 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.56.2 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.56.0 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.56.0.pre3 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.55.0 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.53.1 src/core/lib/iomgr/event_engine_shims/endpoint.h
grpc-1.54.2 src/core/lib/iomgr/event_engine_shims/endpoint.h