/external/autotest/client/cros/netprotos/ |
D | fake_host.py | 19 def socket(self, family, sock_type): argument 26 sock = FakeSocket(self, family, sock_type) 38 def __init__(self, host, family, sock_type): argument 41 self._sock_type = sock_type
|
D | interface_host.py | 34 def socket(self, family, sock_type): argument 43 if family != socket.AF_INET or sock_type != socket.SOCK_DGRAM:
|
/external/ltp/testcases/network/netstress/ |
D | netstress.c | 91 static int sock_type = SOCK_STREAM; variable 278 if (sock_type != SOCK_STREAM) { in client_recv() 323 int cfd = SAFE_SOCKET(family, sock_type, protocol); in client_connect_send() 469 hints.ai_socktype = sock_type; in client_init() 545 int start_send_type = (sock_type == SOCK_DGRAM) ? 1 : 0; in server_fn() 606 if (sock_type == SOCK_STREAM && in server_fn() 631 if (sock_type == SOCK_STREAM && in server_fn() 662 hints.ai_socktype = sock_type; in server_init() 675 sfd = SAFE_SOCKET(family, sock_type, protocol); in server_init() 693 if (sock_type == SOCK_DGRAM) in server_init() [all …]
|
/external/perfetto/src/base/ |
D | unix_socket.cc | 589 SockType sock_type) { in Listen() argument 590 auto sock_raw = UnixSocketRaw::CreateMayFail(sock_family, sock_type); in Listen() 596 sock_type); in Listen() 604 SockType sock_type) { in Listen() argument 607 sock_family, sock_type, SockPeerCredMode::kDefault)); in Listen() 616 SockType sock_type, in Connect() argument 619 event_listener, task_runner, sock_family, sock_type, peer_cred_mode)); in Connect() 630 SockType sock_type, in AdoptConnected() argument 634 sock_family, sock_type, peer_cred_mode)); in AdoptConnected() 640 SockType sock_type, in UnixSocket() argument [all …]
|
/external/python/cpython2/Modules/ |
D | socketmodule.h | 128 int sock_type; /* Socket type, e.g., SOCK_STREAM */ member
|
D | socketmodule.c | 480 static PyTypeObject sock_type; variable 814 s->sock_type = type; in init_sockobject() 840 PyType_GenericNew(&sock_type, NULL, NULL); in new_sockobject() 1762 s->sock_type, in sock_accept() 2245 s->sock_type, 3130 {"type", T_INT, offsetof(PySocketSockObject, sock_type), READONLY, "the socket type"}, 3176 s->sock_type, 3233 static PyTypeObject sock_type = { variable 4578 &sock_type, 4609 Py_TYPE(&sock_type) = &PyType_Type; [all …]
|
/external/autotest/client/deps/lansim/src/py/ |
D | host.py | 229 def socket(self, family, sock_type): argument 242 if sock_type != socket.SOCK_DGRAM:
|
/external/python/cpython3/Modules/ |
D | socketmodule.h | 286 int sock_type; /* Socket type, e.g., SOCK_STREAM */ member
|
D | socketmodule.c | 560 static PyTypeObject sock_type; variable 1005 s->sock_type = type; in init_sockobject() 1014 s->sock_type = s->sock_type & ~SOCK_NONBLOCK; in init_sockobject() 1017 s->sock_type = s->sock_type & ~SOCK_CLOEXEC; in init_sockobject() 1050 PyType_GenericNew(&sock_type, NULL, NULL); in new_sockobject() 5020 {"type", T_INT, offsetof(PySocketSockObject, sock_type), READONLY, "the socket type"}, 5101 s->sock_type, 5366 static PyTypeObject sock_type = { variable 7110 &sock_type, 7157 Py_SET_TYPE(&sock_type, &PyType_Type); [all …]
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/ |
D | socket_ops.hpp | 247 std::size_t servlen, int sock_type, asio::error_code& ec); 253 std::size_t servlen, int sock_type, asio::error_code& ec);
|
/external/openssh/ |
D | ssh-agent.c | 108 } sock_type; typedef 112 sock_type type; 873 new_socket(sock_type type, int fd) in new_socket()
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/impl/ |
D | socket_ops.ipp | 1511 std::size_t servlen, int sock_type, asio::error_code& ec) 1515 int flags = (sock_type == SOCK_DGRAM) ? NI_DGRAM : 0; 1531 std::size_t servlen, int sock_type, asio::error_code& ec) 1541 int flags = (sock_type == SOCK_DGRAM) ? NI_DGRAM : 0;
|
/external/python/cpython3/Lib/test/ |
D | test_socket.py | 1801 sock_type = socket.SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC 1803 with socket.socket(socket.AF_INET, sock_type) as s:
|