/external/tensorflow/tensorflow/core/platform/posix/ |
net.cc | 34 bool IsPortAvailable(int* port, bool is_tcp) { 35 const int protocol = is_tcp ? IPPROTO_TCP : 0; 36 const int fd = socket(AF_INET, is_tcp ? SOCK_STREAM : SOCK_DGRAM, protocol); 95 bool is_tcp = true; local 113 if (!IsPortAvailable(&port, is_tcp)) { 118 if (!IsPortAvailable(&port, !is_tcp)) { 119 is_tcp = !is_tcp;
|
/external/tensorflow/tensorflow/core/platform/windows/ |
net.cc | 36 bool IsPortAvailable(int* port, bool is_tcp) { 37 const int protocol = is_tcp ? IPPROTO_TCP : 0; 38 SOCKET sock = socket(AF_INET, is_tcp ? SOCK_STREAM : SOCK_DGRAM, protocol); 112 bool is_tcp = true; local 130 if (!IsPortAvailable(&port, is_tcp)) { 135 if (!IsPortAvailable(&port, !is_tcp)) { 136 is_tcp = !is_tcp;
|
/external/fio/engines/ |
net.c | 218 static inline int is_tcp(struct netio_options *o) function 270 if (!o->mss || !is_tcp(o)) 339 if (is_tcp(o)) 748 if (o->nodelay && is_tcp(o)) { 863 if (o->nodelay && is_tcp(o)) { 1025 if (is_tcp(o)) 1117 if (is_udp(o) || is_tcp(o)) 1278 if (is_udp(o) || is_tcp(o)) 1322 if (!is_tcp(o)) {
|
/external/curl/lib/ |
connect.c | 993 bool is_tcp; local 1019 is_tcp = (addr.family == AF_INET || addr.family == AF_INET6) && 1022 is_tcp = (addr.family == AF_INET) && addr.socktype == SOCK_STREAM; 1024 if(is_tcp && data->set.tcp_nodelay) 1031 if(is_tcp && data->set.tcp_keepalive) [all...] |
/external/syslinux/core/lwip/src/api/ |
sockets.c | 277 * @param is_tcp != 0 for TCP sockets, used to free lastdata 280 free_socket(struct lwip_sock *sock, int is_tcp) 297 if (is_tcp) { 444 int is_tcp = 0; local 454 is_tcp = netconn_type(sock->conn) == NETCONN_TCP; 461 free_socket(sock, is_tcp); [all...] |
/external/dnsmasq/src/ |
network.c | 712 int local_bind(int fd, union mysockaddr *addr, char *intname, uint32_t mark, int is_tcp) 717 if (is_tcp) [all...] |
dnsmasq.h | 739 int local_bind(int fd, union mysockaddr *addr, char *intname, uint32_t mark, int is_tcp);
|