Merge pull request #9164 from y-zeng/secure_endpoint_fd

Get wrapped endpoint's fd in secure_endpoint's endpoint_get_fd
pull/8891/merge
Yuchen Zeng 8 years ago committed by GitHub
commit 3e50b34af4
  1. 5
      src/core/lib/security/transport/secure_endpoint.c

@ -372,7 +372,10 @@ static char *endpoint_get_peer(grpc_endpoint *secure_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) {
secure_endpoint *ep = (secure_endpoint *)secure_ep;

Loading…
Cancel
Save