Get wrapped endpoint's fd in secure_endpoint's endpoint_get_fd

pull/9164/head
Yuchen Zeng 8 years ago
parent 4e00a995f2
commit b810b85e52
  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