Home
last modified time | relevance | path

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

12

/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
766 self.socket = socket.socket(socket.AF_INET, socktype)
767 if socktype == socket.SOCK_STREAM:
769 self.socktype = socktype
773 use_socktype = self.socktype
780 self.socktype = use_socktype
783 if self.socktype is not None:
[all …]
/external/libusb/libusb/os/
Dlinux_netlink.c92 int socktype = SOCK_RAW; in linux_netlink_start_event_monitor() local
97 socktype |= SOCK_CLOEXEC; in linux_netlink_start_event_monitor()
100 socktype |= SOCK_NONBLOCK; in linux_netlink_start_event_monitor()
103 linux_netlink_socket = socket(PF_NETLINK, socktype, NETLINK_KOBJECT_UEVENT); in linux_netlink_start_event_monitor()
105 usbi_dbg("failed to create netlink socket of type %d, attempting SOCK_RAW", socktype); in linux_netlink_start_event_monitor()
/external/toybox/lib/
Dnet.c18 int xconnect(char *host, char *port, int family, int socktype, int protocol, in xconnect() argument
26 info.ai_socktype = socktype; in xconnect()
Dlib.h287 int xconnect(char *host, char *port, int family, int socktype, int protocol,
/external/curl/lib/
Dconnect.c670 if(conn->socktype == SOCK_DGRAM) in Curl_updateconninfo()
1022 addr.socktype == SOCK_STREAM; in singleipconnect()
1024 is_tcp = (addr.family == AF_INET) && addr.socktype == SOCK_STREAM; in singleipconnect()
1077 if(!isconnected && (conn->socktype == SOCK_STREAM)) { in singleipconnect()
1335 addr->socktype = conn->socktype; in Curl_socket()
1336 addr->protocol = conn->socktype==SOCK_DGRAM?IPPROTO_UDP:ai->ai_protocol; in Curl_socket()
1358 *sockfd = socket(addr->family, addr->socktype, addr->protocol); in Curl_socket()
Dconnect.h83 int socktype; member
Dhostip6.c199 hints.ai_socktype = conn->socktype; in Curl_getaddrinfo()
Dasyn-thread.c645 hints.ai_socktype = conn->socktype; in Curl_resolver_getaddrinfo()
Durldata.h928 int socktype; /* SOCK_STREAM or SOCK_DGRAM */ member
Dtftp.c1362 conn->socktype = SOCK_DGRAM; /* UDP datagram based */ in tftp_setup_connection()
Durl.c4669 conn->socktype = SOCK_STREAM; /* most of them are TCP streams */ in setup_connection_internals()
/external/autotest/client/cros/cellular/
Dprologix_scpi_driver.py193 af, socktype, proto, _, sa = res
195 s = socket.socket(af, socktype, proto)
/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.py284 af, socktype, proto, canonname, sa = res
286 sock = socket.socket(af, socktype, proto)
/external/curl/tests/libtest/
Dlib500.c38 return socket(addr->family, addr->socktype, addr->protocol); in tst_opensocket()
/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/cpython2/Lib/test/
Dtest_support.py432 def find_unused_port(family=socket.AF_INET, socktype=socket.SOCK_STREAM): argument
486 tempsock = socket.socket(family, socktype)
Dtest_socket.py690 for _, socktype, _, _, _ in infos:
691 self.assertEqual(socktype, socket.SOCK_STREAM)
/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
/external/curl/include/curl/
Dcurl.h353 int socktype; member
/external/iproute2/misc/
Dss.c2396 static int tcp_show(struct filter *f, int socktype) in tcp_show() argument
2411 && inet_show_netlink(f, NULL, socktype) == 0) in tcp_show()
/external/curl/packages/OS400/
Dcurl.inc.in1765 d socktype 10i 0

12