Skip to content
Snippets Groups Projects
Commit 3e50b34a authored by Yuchen Zeng's avatar Yuchen Zeng Committed by GitHub
Browse files

Merge pull request #9164 from y-zeng/secure_endpoint_fd

Get wrapped endpoint's fd in secure_endpoint's endpoint_get_fd
parents 89f33bfd b810b85e
No related branches found
No related tags found
No related merge requests found
...@@ -372,7 +372,10 @@ static char *endpoint_get_peer(grpc_endpoint *secure_ep) { ...@@ -372,7 +372,10 @@ static char *endpoint_get_peer(grpc_endpoint *secure_ep) {
return grpc_endpoint_get_peer(ep->wrapped_ep); return grpc_endpoint_get_peer(ep->wrapped_ep);
} }
static int endpoint_get_fd(grpc_endpoint *secure_ep) { return -1; } static int endpoint_get_fd(grpc_endpoint *secure_ep) {
secure_endpoint *ep = (secure_endpoint *)secure_ep;
return grpc_endpoint_get_fd(ep->wrapped_ep);
}
static grpc_workqueue *endpoint_get_workqueue(grpc_endpoint *secure_ep) { static grpc_workqueue *endpoint_get_workqueue(grpc_endpoint *secure_ep) {
secure_endpoint *ep = (secure_endpoint *)secure_ep; secure_endpoint *ep = (secure_endpoint *)secure_ep;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment