Functions | Variables
tcp_posix.h File Reference
#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"
Include dependency graph for tcp_posix.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

grpc_endpointgrpc_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
 

Function Documentation

◆ grpc_tcp_create()

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.

◆ grpc_tcp_destroy_and_release_fd()

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.

◆ grpc_tcp_fd()

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.

Variable Documentation

◆ grpc_tcp_trace

grpc_core::TraceFlag grpc_tcp_trace


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:33