/third_party/musl/porting/linux/user/src/network/ |
H A D | lookup_serv.c | 13 int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags) in __lookup_serv() argument 20 switch (socktype) { in __lookup_serv() 46 buf[0].socktype = socktype; in __lookup_serv() 58 buf[cnt].socktype = SOCK_STREAM; in __lookup_serv() 63 buf[cnt].socktype = SOCK_DGRAM; in __lookup_serv() 95 buf[cnt].socktype = SOCK_DGRAM; in __lookup_serv() 101 buf[cnt].socktype = SOCK_STREAM; in __lookup_serv()
|
H A D | getaddrinfo.c | 112 int family = AF_UNSPEC, flags = 0, proto = 0, socktype = 0; in getaddrinfo_ext() local 119 socktype = hint->ai_socktype; in getaddrinfo_ext() 181 nservs = __lookup_serv(ports, serv, proto, socktype, flags); in getaddrinfo_ext() 207 .ai_socktype = ports[j].socktype, in getaddrinfo_ext()
|
H A D | lookup.h | 42 unsigned char proto, socktype; member 59 hidden int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags);
|
/third_party/musl/src/network/ |
H A D | lookup_serv.c | 13 int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags) in __lookup_serv() argument 20 switch (socktype) { in __lookup_serv() 29 MUSL_LOGE("%{public}s: %{public}d: socktype mismatch IPPROTO_TCP: %{public}d", __func__, __LINE__, proto); in __lookup_serv() 42 MUSL_LOGE("%{public}s: %{public}d: socktype mismatch IPPROTO_UDP: %{public}d", __func__, __LINE__, proto); in __lookup_serv() 51 MUSL_LOGE("%{public}s: %{public}d: socktype mismatch name: %{public}d", __func__, __LINE__, EAI_SERVICE); in __lookup_serv() 57 buf[0].socktype = socktype; in __lookup_serv() 79 buf[cnt].socktype = SOCK_STREAM; in __lookup_serv() 84 buf[cnt].socktype = SOCK_DGRAM; in __lookup_serv() 121 buf[cnt].socktype in __lookup_serv() [all...] |
H A D | getaddrinfo.c | 25 int family = AF_UNSPEC, flags = 0, proto = 0, socktype = 0; in getaddrinfo() local 34 socktype = hint->ai_socktype; in getaddrinfo() 97 nservs = __lookup_serv(ports, serv, proto, socktype, flags); in getaddrinfo() 119 .ai_socktype = ports[j].socktype, in getaddrinfo()
|
H A D | lookup.h | 45 unsigned char proto, socktype; member 62 hidden int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags);
|
/third_party/node/deps/openssl/openssl/crypto/bio/ |
H A D | bio_sock2.c | 31 * @socktype: the socket type (SOCK_STEAM, SOCK_DGRAM) 41 int BIO_socket(int domain, int socktype, int protocol, int options) in BIO_socket() argument 48 sock = socket(domain, socktype, protocol); in BIO_socket() 225 int socktype; in BIO_listen() local 226 socklen_t socktype_len = sizeof(socktype); in BIO_listen() 234 (void *)&socktype, &socktype_len) != 0 in BIO_listen() 235 || socktype_len != sizeof(socktype)) { in BIO_listen() 286 if (socktype != SOCK_DGRAM && listen(sock, MAX_LISTEN) == -1) { in BIO_listen()
|
H A D | bio_addr.c | 576 static int addrinfo_wrap(int family, int socktype, in addrinfo_wrap() argument 587 (*bai)->bai_socktype = socktype; in addrinfo_wrap() 588 if (socktype == SOCK_STREAM) in addrinfo_wrap() 590 if (socktype == SOCK_DGRAM) in addrinfo_wrap() 625 int family, int socktype, BIO_ADDRINFO **res) in BIO_lookup() 627 return BIO_lookup_ex(host, service, lookup_type, family, socktype, 0, res); in BIO_lookup() 637 * @socktype: The socket type you want to use. Can be SOCK_STREAM, SOCK_DGRAM 653 int family, int socktype, int protocol, BIO_ADDRINFO **res) in BIO_lookup_ex() 676 if (addrinfo_wrap(family, socktype, host, strlen(host), 0, res)) in BIO_lookup_ex() 695 hints.ai_socktype = socktype; in BIO_lookup_ex() 623 BIO_lookup(const char *host, const char *service, enum BIO_lookup_type lookup_type, int family, int socktype, BIO_ADDRINFO **res) BIO_lookup() argument 652 BIO_lookup_ex(const char *host, const char *service, int lookup_type, int family, int socktype, int protocol, BIO_ADDRINFO **res) BIO_lookup_ex() argument [all...] |
/third_party/openssl/crypto/bio/ |
H A D | bio_sock2.c | 31 * @socktype: the socket type (SOCK_STEAM, SOCK_DGRAM) 41 int BIO_socket(int domain, int socktype, int protocol, int options) in BIO_socket() argument 48 sock = socket(domain, socktype, protocol); in BIO_socket() 225 int socktype; in BIO_listen() local 226 socklen_t socktype_len = sizeof(socktype); in BIO_listen() 234 (void *)&socktype, &socktype_len) != 0 in BIO_listen() 235 || socktype_len != sizeof(socktype)) { in BIO_listen() 286 if (socktype != SOCK_DGRAM && listen(sock, MAX_LISTEN) == -1) { in BIO_listen()
|
H A D | bio_addr.c | 576 static int addrinfo_wrap(int family, int socktype, in addrinfo_wrap() argument 587 (*bai)->bai_socktype = socktype; in addrinfo_wrap() 588 if (socktype == SOCK_STREAM) in addrinfo_wrap() 590 if (socktype == SOCK_DGRAM) in addrinfo_wrap() 625 int family, int socktype, BIO_ADDRINFO **res) in BIO_lookup() 627 return BIO_lookup_ex(host, service, lookup_type, family, socktype, 0, res); in BIO_lookup() 637 * @socktype: The socket type you want to use. Can be SOCK_STREAM, SOCK_DGRAM 653 int family, int socktype, int protocol, BIO_ADDRINFO **res) in BIO_lookup_ex() 676 if (addrinfo_wrap(family, socktype, host, strlen(host), 0, res)) in BIO_lookup_ex() 695 hints.ai_socktype = socktype; in BIO_lookup_ex() 623 BIO_lookup(const char *host, const char *service, enum BIO_lookup_type lookup_type, int family, int socktype, BIO_ADDRINFO **res) BIO_lookup() argument 652 BIO_lookup_ex(const char *host, const char *service, int lookup_type, int family, int socktype, int protocol, BIO_ADDRINFO **res) BIO_lookup_ex() argument [all...] |
/third_party/python/Lib/logging/ |
H A D | handlers.py | 849 facility=LOG_USER, socktype=None): 855 If facility is not specified, LOG_USER is used. If socktype is 858 socktype of None, in which case socket.SOCK_DGRAM will be used, falling 865 self.socktype = socktype 870 use_socktype = self.socktype 876 # it worked, so set self.socktype to the used type 877 self.socktype = use_socktype 880 if self.socktype is not None: 887 # it worked, so set self.socktype t [all...] |
/third_party/musl/src/network/linux/ |
H A D | getaddrinfo.c | 127 int family = AF_UNSPEC, flags = 0, proto = 0, socktype = 0; in getaddrinfo_ext() local 134 socktype = hint->ai_socktype; in getaddrinfo_ext() 220 nservs = __lookup_serv(ports, serv, proto, socktype, flags); in getaddrinfo_ext() 255 .ai_socktype = ports[j].socktype, in getaddrinfo_ext()
|
/third_party/python/Lib/test/support/ |
H A D | socket_helper.py | 18 def find_unused_port(family=socket.AF_INET, socktype=socket.SOCK_STREAM): 74 with socket.socket(family, socktype) as tempsock:
|
/third_party/toybox/lib/ |
H A D | net.c | 19 struct addrinfo *xgetaddrinfo(char *host, char *port, int family, int socktype, in xgetaddrinfo() argument 27 info.ai_socktype = socktype; in xgetaddrinfo()
|
/third_party/python/Lib/ |
H A D | socket.py | 828 af, socktype, proto, canonname, sa = res 831 sock = socket(af, socktype, proto) 963 af, socktype, proto, canonname, sa = res 965 _intenum_converter(socktype, SocketKind),
|
/third_party/curl/lib/ |
H A D | cf-socket.h | 46 int socktype; member
|
H A D | cf-socket.c | 240 dest->socktype = SOCK_STREAM; in Curl_sock_assign_addr() 244 dest->socktype = SOCK_STREAM; in Curl_sock_assign_addr() 248 dest->socktype = SOCK_DGRAM; in Curl_sock_assign_addr() 283 *sockfd = socket(addr->family, addr->socktype, addr->protocol); in socket_open() 1008 ctx->addr.socktype == SOCK_STREAM; in cf_socket_open() 1011 ctx->addr.socktype == SOCK_STREAM; in cf_socket_open() 1061 ctx->sock_connected = (ctx->addr.socktype != SOCK_DGRAM); in cf_socket_open()
|
/third_party/curl/tests/libtest/ |
H A D | lib500.c | 40 return socket(addr->family, addr->socktype, addr->protocol); in tst_opensocket()
|
/third_party/musl/Benchmark/musl/ |
H A D | socket_test.cpp | 245 static int ConnectTo(const char *host, const char *port, int socktype, struct addrinfo *addr) in ConnectTo() argument 253 hint.ai_socktype = socktype; in ConnectTo()
|
/third_party/openssl/ohos_lite/include/openssl/ |
H A D | bio.h | 673 int family, int socktype, BIO_ADDRINFO **res); 675 int lookup_type, int family, int socktype, int protocol, 707 int BIO_socket(int domain, int socktype, int protocol, int options);
|
/third_party/node/deps/openssl/config/archs/darwin-i386-cc/no-asm/include/openssl/ |
H A D | bio.h | 757 int family, int socktype, BIO_ADDRINFO **res); 759 int lookup_type, int family, int socktype, int protocol, 792 int BIO_socket(int domain, int socktype, int protocol, int options);
|
/third_party/node/deps/openssl/config/archs/linux-aarch64/no-asm/include/openssl/ |
H A D | bio.h | 757 int family, int socktype, BIO_ADDRINFO **res); 759 int lookup_type, int family, int socktype, int protocol, 792 int BIO_socket(int domain, int socktype, int protocol, int options);
|
/third_party/node/deps/openssl/config/archs/linux-aarch64/asm_avx2/include/openssl/ |
H A D | bio.h | 757 int family, int socktype, BIO_ADDRINFO **res); 759 int lookup_type, int family, int socktype, int protocol, 792 int BIO_socket(int domain, int socktype, int protocol, int options);
|
/third_party/node/deps/openssl/config/archs/linux-aarch64/asm/include/openssl/ |
H A D | bio.h | 757 int family, int socktype, BIO_ADDRINFO **res); 759 int lookup_type, int family, int socktype, int protocol, 792 int BIO_socket(int domain, int socktype, int protocol, int options);
|
/third_party/node/deps/openssl/config/archs/linux-elf/asm_avx2/include/openssl/ |
H A D | bio.h | 757 int family, int socktype, BIO_ADDRINFO **res); 759 int lookup_type, int family, int socktype, int protocol, 792 int BIO_socket(int domain, int socktype, int protocol, int options);
|