Home
last modified time | relevance | path

Searched refs:socktype (Results 1 – 25 of 32) sorted by relevance

12

/third_party/musl/src/network/
Dlookup_serv.c12 int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, i… in __lookup_serv() argument
19 switch (socktype) { in __lookup_serv()
45 buf[0].socktype = socktype; in __lookup_serv()
57 buf[cnt].socktype = SOCK_STREAM; in __lookup_serv()
62 buf[cnt].socktype = SOCK_DGRAM; in __lookup_serv()
102 buf[cnt].socktype = SOCK_DGRAM; in __lookup_serv()
108 buf[cnt].socktype = SOCK_STREAM; in __lookup_serv()
Dgetaddrinfo.c25 int family = AF_UNSPEC, flags = 0, proto = 0, socktype = 0; in getaddrinfo() local
34 socktype = hint->ai_socktype; in getaddrinfo()
95 nservs = __lookup_serv(ports, serv, proto, socktype, flags); in getaddrinfo()
117 .ai_socktype = ports[j].socktype, in getaddrinfo()
Dlookup.h42 unsigned char proto, socktype; member
59 …up_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags);
/third_party/openssl/crypto/bio/
Db_sock2.c40 int BIO_socket(int domain, int socktype, int protocol, int options) in BIO_socket() argument
47 sock = socket(domain, socktype, protocol); in BIO_socket()
209 int socktype; in BIO_listen() local
210 socklen_t socktype_len = sizeof(socktype); in BIO_listen()
218 (void *)&socktype, &socktype_len) != 0 in BIO_listen()
219 || socktype_len != sizeof(socktype)) { in BIO_listen()
266 if (socktype != SOCK_DGRAM && listen(sock, MAX_LISTEN) == -1) { in BIO_listen()
Db_addr.c567 static int addrinfo_wrap(int family, int socktype, in addrinfo_wrap() argument
578 (*bai)->bai_socktype = socktype; in addrinfo_wrap()
579 if (socktype == SOCK_STREAM) in addrinfo_wrap()
581 if (socktype == SOCK_DGRAM) in addrinfo_wrap()
618 int family, int socktype, BIO_ADDRINFO **res) in BIO_lookup() argument
620 return BIO_lookup_ex(host, service, lookup_type, family, socktype, 0, res); in BIO_lookup()
646 int family, int socktype, int protocol, BIO_ADDRINFO **res) in BIO_lookup_ex() argument
669 if (addrinfo_wrap(family, socktype, host, strlen(host), 0, res)) in BIO_lookup_ex()
688 hints.ai_socktype = socktype; in BIO_lookup_ex()
846 switch (socktype) { in BIO_lookup_ex()
[all …]
/third_party/libusb/libusb/os/
Dlinux_netlink.c56 static int set_fd_cloexec_nb(int fd, int socktype) in set_fd_cloexec_nb() argument
62 if (!(socktype & SOCK_CLOEXEC)) { in set_fd_cloexec_nb()
77 if (!(socktype & SOCK_NONBLOCK)) { in set_fd_cloexec_nb()
96 int socktype = SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC; in linux_netlink_start_event_monitor() local
100 linux_netlink_socket = socket(PF_NETLINK, socktype, NETLINK_KOBJECT_UEVENT); in linux_netlink_start_event_monitor()
102 usbi_dbg("failed to create netlink socket of type %d, attempting SOCK_RAW", socktype); in linux_netlink_start_event_monitor()
103 socktype = SOCK_RAW; in linux_netlink_start_event_monitor()
104 linux_netlink_socket = socket(PF_NETLINK, socktype, NETLINK_KOBJECT_UEVENT); in linux_netlink_start_event_monitor()
112 ret = set_fd_cloexec_nb(linux_netlink_socket, socktype); in linux_netlink_start_event_monitor()
/third_party/python/Lib/logging/
Dhandlers.py845 facility=LOG_USER, socktype=None): argument
861 self.socktype = socktype
875 if socktype is None:
876 socktype = socket.SOCK_DGRAM
878 ress = socket.getaddrinfo(host, port, 0, socktype)
882 af, socktype, proto, _, sa = res
885 sock = socket.socket(af, socktype, proto)
886 if socktype == socket.SOCK_STREAM:
896 self.socktype = socktype
899 use_socktype = self.socktype
[all …]
/third_party/openssl/doc/man3/
DBIO_ADDRINFO.pod25 int family, int socktype, int protocol, BIO_ADDRINFO **res);
28 int family, int socktype, BIO_ADDRINFO **res);
47 be if B<host> is B<NULL>. B<family>, B<socktype> and B<protocol> are used to
50 AF_UNSPEC. B<socktype> can be SOCK_STREAM, SOCK_DGRAM or 0. Specifying 0
DBIO_connect.pod12 int BIO_socket(int domain, int socktype, int protocol, int options);
22 B<socktype> and B<protocol>. Socket B<options> are currently unused,
/third_party/python/Lib/test/support/
Dsocket_helper.py15 def find_unused_port(family=socket.AF_INET, socktype=socket.SOCK_STREAM): argument
71 with socket.socket(family, socktype) as tempsock:
/third_party/toybox/lib/
Dnet.c19 struct addrinfo *xgetaddrinfo(char *host, char *port, int family, int socktype, in xgetaddrinfo() argument
27 info.ai_socktype = socktype; in xgetaddrinfo()
Dlib.h351 struct addrinfo *xgetaddrinfo(char *host, char *port, int family, int socktype,
/third_party/python/Lib/
Dsocket.py825 af, socktype, proto, canonname, sa = res
828 sock = socket(af, socktype, proto)
956 af, socktype, proto, canonname, sa = res
958 _intenum_converter(socktype, SocketKind),
/third_party/curl/lib/
Dconnect.h99 int socktype; member
Dconnect.c1199 addr.socktype == SOCK_STREAM; in singleipconnect()
1201 is_tcp = (addr.family == AF_INET) && addr.socktype == SOCK_STREAM; in singleipconnect()
1578 addr->socktype = (conn->transport == TRNSPRT_TCP) ? SOCK_STREAM : SOCK_DGRAM; in Curl_socket()
1605 *sockfd = socket(addr->family, addr->socktype, addr->protocol); in Curl_socket()
1624 if(addr->socktype == SOCK_DGRAM) { in Curl_socket()
/third_party/curl/tests/libtest/
Dlib500.c38 return socket(addr->family, addr->socktype, addr->protocol); in tst_opensocket()
/third_party/openssl/include/openssl/
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/python/Lib/asyncio/
Dbase_events.py1465 af, socktype, proto, canonname, sa = res
1467 sock = socket.socket(af, socktype, proto)
1473 af, socktype, proto, exc_info=True)
/third_party/toybox/porting/liteos_a/lib/
Dlib.h352 struct addrinfo *xgetaddrinfo(char *host, char *port, int family, int socktype,
/third_party/boost/boost/asio/detail/impl/
Dsocket_ops.ipp3165 inline int gai_port(addrinfo_type* aihead, int port, int socktype)
3181 else if (ai->ai_socktype != socktype)
3187 ai->ai_socktype = socktype;
3295 int flags, int family, int socktype, int protocol)
3313 if (socktype != 0 && socktype != SOCK_STREAM && socktype != SOCK_DGRAM)
/third_party/boost/libs/asio/include/boost/asio/detail/impl/
Dsocket_ops.ipp3165 inline int gai_port(addrinfo_type* aihead, int port, int socktype)
3181 else if (ai->ai_socktype != socktype)
3187 ai->ai_socktype = socktype;
3295 int flags, int family, int socktype, int protocol)
3313 if (socktype != 0 && socktype != SOCK_STREAM && socktype != SOCK_DGRAM)
/third_party/python/Modules/
Dsocketmodule.c6439 int family, socktype, protocol, flags; local
6444 socktype = protocol = flags = 0;
6447 kwnames, &hobj, &pobj, &family, &socktype,
6495 hobj, pobj, family, socktype, protocol) < 0) {
6501 hints.ai_socktype = socktype;
/third_party/python/Doc/library/
Dlogging.handlers.rst609 .. class:: SysLogHandler(address=('localhost', SYSLOG_UDP_PORT), facility=LOG_USER, socktype=socket…
619 *socktype* argument, which defaults to :const:`socket.SOCK_DGRAM` and thus
633 *socktype* was added.
Dsocket.rst1919 af, socktype, proto, canonname, sa = res
1921 s = socket.socket(af, socktype, proto)
1954 af, socktype, proto, canonname, sa = res
1956 s = socket.socket(af, socktype, proto)
/third_party/curl/include/curl/
Dcurl.h408 int socktype; member

12