Home
last modified time | relevance | path

Searched refs:socktype (Results 1 - 25 of 83) sorted by relevance

1234

/third_party/musl/porting/linux/user/src/network/
H A Dlookup_serv.c13 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 Dgetaddrinfo.c112 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 Dlookup.h42 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 Dlookup_serv.c13 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 Dgetaddrinfo.c25 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 Dlookup.h45 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 Dbio_sock2.c31 * @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 Dbio_addr.c576 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 Dbio_sock2.c31 * @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 Dbio_addr.c576 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 Dhandlers.py849 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 Dgetaddrinfo.c127 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 Dsocket_helper.py18 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 Dnet.c19 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 Dsocket.py828 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 Dcf-socket.h46 int socktype; member
H A Dcf-socket.c240 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 Dlib500.c40 return socket(addr->family, addr->socktype, addr->protocol); in tst_opensocket()
/third_party/musl/Benchmark/musl/
H A Dsocket_test.cpp245 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 Dbio.h673 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 Dbio.h757 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 Dbio.h757 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 Dbio.h757 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 Dbio.h757 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 Dbio.h757 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);

Completed in 24 milliseconds

1234