#include <grpc/support/port_platform.h>
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/iomgr/buffer_list.h"
#include "src/core/lib/iomgr/endpoint.h"
#include "src/core/lib/iomgr/ev_posix.h"
#include "src/core/lib/iomgr/port.h"
Go to the source code of this file.
Functions | |
grpc_endpoint * | grpc_tcp_create (grpc_fd *fd, const grpc_channel_args *args, absl::string_view peer_string) |
void | grpc_tcp_destroy_and_release_fd (grpc_endpoint *ep, int *fd, grpc_closure *done) |
int | grpc_tcp_fd (grpc_endpoint *ep) |
Variables | |
grpc_core::TraceFlag | grpc_tcp_trace |
grpc_endpoint* grpc_tcp_create | ( | grpc_fd * | fd, |
const grpc_channel_args * | args, | ||
absl::string_view | peer_string | ||
) |
Create a tcp endpoint given a file desciptor and a read slice size. Takes ownership of fd. Takes ownership of the slice_allocator.
void grpc_tcp_destroy_and_release_fd | ( | grpc_endpoint * | ep, |
int * | fd, | ||
grpc_closure * | done | ||
) |
Destroy the tcp endpoint without closing its fd. *fd will be set and done will be called when the endpoint is destroyed. Requires: ep must be a tcp endpoint and fd must not be NULL.
int grpc_tcp_fd | ( | grpc_endpoint * | ep | ) |
Return the tcp endpoint's fd, or -1 if this is not available. Does not release the fd. Requires: ep must be a tcp endpoint.
grpc_core::TraceFlag grpc_tcp_trace |