Home
last modified time | relevance | path

Searched refs:sock_type (Results 1 – 13 of 13) sorted by relevance

/external/autotest/client/cros/netprotos/
Dfake_host.py19 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
Dinterface_host.py34 def socket(self, family, sock_type): argument
43 if family != socket.AF_INET or sock_type != socket.SOCK_DGRAM:
/external/ltp/testcases/network/netstress/
Dnetstress.c91 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/
Dunix_socket.cc589 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/
Dsocketmodule.h128 int sock_type; /* Socket type, e.g., SOCK_STREAM */ member
Dsocketmodule.c480 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/
Dhost.py229 def socket(self, family, sock_type): argument
242 if sock_type != socket.SOCK_DGRAM:
/external/python/cpython3/Modules/
Dsocketmodule.h286 int sock_type; /* Socket type, e.g., SOCK_STREAM */ member
Dsocketmodule.c560 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/
Dsocket_ops.hpp247 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/
Dssh-agent.c108 } 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/
Dsocket_ops.ipp1511 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/
Dtest_socket.py1801 sock_type = socket.SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC
1803 with socket.socket(socket.AF_INET, sock_type) as s: