Home
last modified time | relevance | path

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

12

/external/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()
/external/python/cpython2/Lib/logging/
Dhandlers.py741 facility=LOG_USER, socktype=None): argument
757 self.socktype = socktype
764 if socktype is None:
765 socktype = socket.SOCK_DGRAM
767 ress = socket.getaddrinfo(host, port, 0, socktype)
771 af, socktype, proto, _, sa = res
774 sock = socket.socket(af, socktype, proto)
775 if socktype == socket.SOCK_STREAM:
785 self.socktype = socktype
788 use_socktype = self.socktype
[all …]
/external/python/cpython3/Lib/logging/
Dhandlers.py815 facility=LOG_USER, socktype=None): argument
831 self.socktype = socktype
845 if socktype is None:
846 socktype = socket.SOCK_DGRAM
848 ress = socket.getaddrinfo(host, port, 0, socktype)
852 af, socktype, proto, _, sa = res
855 sock = socket.socket(af, socktype, proto)
856 if socktype == socket.SOCK_STREAM:
866 self.socktype = socktype
869 use_socktype = self.socktype
[all …]
/external/python/cpython3/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:
/external/autotest/client/cros/cellular/
Dprologix_scpi_driver.py193 af, socktype, proto, _, sa = res
195 s = socket.socket(af, socktype, proto)
/external/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.h359 struct addrinfo *xgetaddrinfo(char *host, char *port, int family, int socktype,
/external/python/cpython3/Lib/
Dsocket.py823 af, socktype, proto, canonname, sa = res
826 sock = socket(af, socktype, proto)
954 af, socktype, proto, canonname, sa = res
956 _intenum_converter(socktype, SocketKind),
/external/curl/lib/
Dconnect.h90 int socktype; member
Dconnect.c1152 addr.socktype == SOCK_STREAM; in singleipconnect()
1154 is_tcp = (addr.family == AF_INET) && addr.socktype == SOCK_STREAM; in singleipconnect()
1510 addr->socktype = (conn->transport == TRNSPRT_TCP) ? SOCK_STREAM : SOCK_DGRAM; in Curl_socket()
1537 *sockfd = socket(addr->family, addr->socktype, addr->protocol); in Curl_socket()
/external/python/cpython2/Lib/
Dpoplib.py347 af, socktype, proto, canonname, sa = res
349 self.sock = socket.socket(af, socktype, proto)
Dsocket.py558 af, socktype, proto, canonname, sa = res
561 sock = socket(af, socktype, proto)
Dftplib.py286 af, socktype, proto, canonname, sa = res
288 sock = socket.socket(af, socktype, proto)
/external/curl/tests/libtest/
Dlib500.c38 return socket(addr->family, addr->socktype, addr->protocol); in tst_opensocket()
/external/libevent/test/
Dregress.h115 int socktype, int protocol, int line);
Dregress_util.c874 int socktype, int protocol, int line) in test_ai_eq_() argument
881 if (socktype > 0) in test_ai_eq_()
882 tt_int_op(ai->ai_socktype, ==, socktype); in test_ai_eq_()
/external/libevent/
Dlistener.c219 int socktype = SOCK_STREAM | EVUTIL_SOCK_NONBLOCK; in evconnlistener_new_bind() local
225 socktype |= EVUTIL_SOCK_CLOEXEC; in evconnlistener_new_bind()
227 fd = evutil_socket_(family, socktype, 0); in evconnlistener_new_bind()
/external/python/httplib2/python2/httplib2/
D__init__.py1188 af, socktype, proto, canonname, sa = res
1191 self.sock = socks.socksocket(af, socktype, proto)
1202 self.sock = socket.socket(af, socktype, proto)
1366 for family, socktype, proto, canonname, sockaddr in address_info:
1369 sock = socks.socksocket(family, socktype, proto)
1381 sock = socket.socket(family, socktype, proto)
/external/python/httplib2/python3/httplib2/
D__init__.py1173 af, socktype, proto, canonname, sa = res
1176 self.sock = socks.socksocket(af, socktype, proto)
1186 self.sock = socket.socket(af, socktype, proto)
1306 for family, socktype, proto, canonname, sockaddr in address_info:
1309 sock = socks.socksocket(family, socktype, proto)
1320 sock = socket.socket(family, socktype, proto)
/external/python/cpython2/Doc/library/
Dsocket.rst235 .. function:: getaddrinfo(host, port[, family[, socktype[, proto[, flags]]]])
244 The *family*, *socktype* and *proto* arguments can be optionally specified
254 ``(family, socktype, proto, canonname, sockaddr)``
256 In these tuples, *family*, *socktype*, *proto* are all integers and are
925 af, socktype, proto, canonname, sa = res
927 s = socket.socket(af, socktype, proto)
960 af, socktype, proto, canonname, sa = res
962 s = socket.socket(af, socktype, proto)
Dlogging.handlers.rst416 .. class:: SysLogHandler(address=('localhost', SYSLOG_UDP_PORT), facility=LOG_USER, socktype=socket…
426 *socktype* argument, which defaults to :const:`socket.SOCK_DGRAM` and thus
440 *socktype* was added.
/external/python/cpython3/Lib/asyncio/
Dbase_events.py1466 af, socktype, proto, canonname, sa = res
1468 sock = socket.socket(af, socktype, proto)
1474 af, socktype, proto, exc_info=True)
/external/python/cpython2/Lib/test/support/
D__init__.py447 def find_unused_port(family=socket.AF_INET, socktype=socket.SOCK_STREAM): argument
501 tempsock = socket.socket(family, socktype)
/external/python/cpython2/Modules/
Dsocketmodule.c4170 int family, socktype, protocol, flags; local
4176 family = socktype = protocol = flags = 0;
4179 &hobj, &pobj, &family, &socktype,
4223 hints.ai_socktype = socktype;
/external/google-breakpad/src/third_party/curl/
Dcurl.h234 int socktype; member

12