tcp_client.cc
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2018 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
20 
22 
24 
26  grpc_endpoint** endpoint,
27  grpc_pollset_set* interested_parties,
28  const grpc_channel_args* channel_args,
30  grpc_core::Timestamp deadline) {
31  return grpc_tcp_client_impl->connect(on_connect, endpoint, interested_parties,
32  channel_args, addr, deadline);
33 }
34 
35 bool grpc_tcp_client_cancel_connect(int64_t connection_handle) {
36  return grpc_tcp_client_impl->cancel_connect(connection_handle);
37 }
38 
40  grpc_tcp_client_impl = impl;
41 }
grpc_tcp_client_vtable::cancel_connect
bool(* cancel_connect)(int64_t connection_handle)
Definition: tcp_client.h:38
grpc_pollset_set
struct grpc_pollset_set grpc_pollset_set
Definition: iomgr_fwd.h:23
grpc_core::Timestamp
Definition: src/core/lib/gprpp/time.h:62
grpc_resolved_address
Definition: resolved_address.h:34
grpc_tcp_client_connect
int64_t grpc_tcp_client_connect(grpc_closure *on_connect, grpc_endpoint **endpoint, grpc_pollset_set *interested_parties, const grpc_channel_args *channel_args, const grpc_resolved_address *addr, grpc_core::Timestamp deadline)
Definition: tcp_client.cc:25
grpc_channel_args
Definition: grpc_types.h:132
int64_t
signed __int64 int64_t
Definition: stdint-msvc2008.h:89
grpc_set_tcp_client_impl
void grpc_set_tcp_client_impl(grpc_tcp_client_vtable *impl)
Definition: tcp_client.cc:39
tcp_client.h
on_connect
void on_connect(uv_connect_t *req, int status)
Definition: libuv/docs/code/dns/main.c:32
grpc_tcp_client_vtable::connect
int64_t(* connect)(grpc_closure *on_connect, grpc_endpoint **endpoint, grpc_pollset_set *interested_parties, const grpc_channel_args *channel_args, const grpc_resolved_address *addr, grpc_core::Timestamp deadline)
Definition: tcp_client.h:33
grpc_tcp_client_vtable
Definition: tcp_client.h:32
grpc_tcp_client_impl
grpc_tcp_client_vtable * grpc_tcp_client_impl
Definition: tcp_client.cc:23
grpc_closure
Definition: closure.h:56
grpc_endpoint
Definition: endpoint.h:105
addr
struct sockaddr_in addr
Definition: libuv/docs/code/tcp-echo-server/main.c:10
grpc_tcp_client_cancel_connect
bool grpc_tcp_client_cancel_connect(int64_t connection_handle)
Definition: tcp_client.cc:35
port_platform.h


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:29