Home
last modified time | relevance | path

Searched refs:is_tcp (Results 1 – 17 of 17) sorted by relevance

/third_party/node/deps/cares/src/lib/
Dares__socket.c242 ares_bool_t is_tcp) in ares__open_connection() argument
255 int type = is_tcp ? SOCK_STREAM : SOCK_DGRAM; in ares__open_connection()
257 if ((is_tcp && server->tcp_port == 53) || in ares__open_connection()
258 (!is_tcp && server->udp_port == 53)) { in ares__open_connection()
269 saddr.sa4.sin_port = htons(is_tcp ? server->tcp_port : server->udp_port); in ares__open_connection()
278 saddr.sa6.sin6_port = htons(is_tcp ? server->tcp_port : server->udp_port); in ares__open_connection()
302 if (is_tcp) { in ares__open_connection()
354 conn->is_tcp = is_tcp; in ares__open_connection()
364 if (is_tcp) { in ares__open_connection()
388 if (is_tcp) { in ares__open_connection()
Dares_getsock.c67 if (!active_queries && !conn->is_tcp) { in ares_getsock()
73 if (active_queries || conn->is_tcp) { in ares_getsock()
77 if (conn->is_tcp && ares__buf_len(server->tcp_send)) { in ares_getsock()
Dares_fds.c58 if (!active_queries && !conn->is_tcp) { in ares_fds()
75 if (conn->is_tcp && ares__buf_len(server->tcp_send)) { in ares_fds()
Dares__close_sockets.c54 if (conn->is_tcp) { in ares__close_connection()
101 if (!conn->is_tcp && channel->udp_max_queries > 0 && in ares__check_cleanup_conn()
Dares_private.h157 ares_bool_t is_tcp; member
447 ares_bool_t is_tcp);
Dares_process.c501 if (conn->is_tcp) { in read_packets()
535 if (conn->is_tcp) { in read_packets()
956 if (conn->is_tcp) { in ares__send_query()
Dares_update_servers.c502 ares_bool_t is_tcp) in ares__sconfig_get_port() argument
504 unsigned short port = is_tcp ? s->tcp_port : s->udp_port; in ares__sconfig_get_port()
507 port = is_tcp ? channel->tcp_port : channel->udp_port; in ares__sconfig_get_port()
/third_party/lwip/
D0003-fix-the-occasional-coredump-when-the-lwip-exits.patch22 - int i, is_tcp;
41 - is_tcp = NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP;
43 - free_socket(sock, is_tcp);
D0007-gazelle-fix-epoll_ctl-EPOLLET-mode-error.patch13 @@ -714,6 +714,13 @@ free_socket(struct lwip_sock *sock, int is_tcp)
24 freed = free_socket_locked(sock, is_tcp, &conn, &lastdata);
38 free_socket(sock, is_tcp);
D0012-fix-incomplete-resource-release-in-lwip-close.patch17 int is_tcp = 0;
41 free_socket(sock, is_tcp);
D0016-lstack-support-mysql-mode.patch124 @@ -714,13 +704,6 @@ free_socket(struct lwip_sock *sock, int is_tcp)
135 freed = free_socket_locked(sock, is_tcp, &conn, &lastdata);
231 int is_tcp = 0;
261 is_tcp = NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP;
264 free_socket(sock, is_tcp);
D0057-same-node-gazellectl-a.patch35 @@ -716,6 +720,11 @@ free_socket(struct lwip_sock *sock, int is_tcp)
44 freed = free_socket_locked(sock, is_tcp, &conn, &lastdata);
D0034-add-accept4-and-epoll_create1.patch62 @@ -721,7 +729,7 @@ free_socket(struct lwip_sock *sock, int is_tcp)
D0002-adapt-lstack.patch922 is_tcp = NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP;
934 free_socket(sock, is_tcp);
1501 + int i, is_tcp;
1520 + is_tcp = NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP;
1522 + free_socket(sock, is_tcp);
/third_party/lwip/src/api/
Dsockets.c308 static int free_socket_locked(struct lwip_sock *sock, int is_tcp, struct netconn **conn,
310 static void free_socket_free_elements(int is_tcp, struct netconn *conn, union lwip_sock_lastdata *l…
388 int is_tcp = 0; in done_socket() local
400 is_tcp = sock->fd_free_pending & LWIP_SOCK_FD_FREE_TCP; in done_socket()
401 freed = free_socket_locked(sock, is_tcp, &conn, &lastdata); in done_socket()
407 free_socket_free_elements(is_tcp, conn, &lastdata); in done_socket()
557 free_socket_locked(struct lwip_sock *sock, int is_tcp, struct netconn **conn, in free_socket_locked() argument
564 sock->fd_free_pending = LWIP_SOCK_FD_FREE_FREE | (is_tcp ? LWIP_SOCK_FD_FREE_TCP : 0); in free_socket_locked()
568 LWIP_UNUSED_ARG(is_tcp); in free_socket_locked()
581 free_socket_free_elements(int is_tcp, struct netconn *conn, union lwip_sock_lastdata *lastdata) in free_socket_free_elements() argument
[all …]
/third_party/node/src/
Dstream_wrap.h73 inline bool is_tcp() const { in is_tcp() function
/third_party/curl/lib/
Dcf-socket.c983 bool is_tcp; in cf_socket_open() local
1006 is_tcp = (ctx->addr.family == AF_INET in cf_socket_open()
1010 is_tcp = (ctx->addr.family == AF_INET) && in cf_socket_open()
1013 if(is_tcp && data->set.tcp_nodelay) in cf_socket_open()
1020 if(is_tcp && data->set.tcp_keepalive) in cf_socket_open()