Home
last modified time | relevance | path

Searched refs:sock_type (Results 1 – 15 of 15) 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/perfetto/src/base/
Dunix_socket.cc374 SockType sock_type) { in Listen() argument
375 auto sock_raw = UnixSocketRaw::CreateMayFail(sock_type); in Listen()
380 return Listen(sock_raw.ReleaseFd(), event_listener, task_runner, sock_type); in Listen()
387 SockType sock_type) { in Listen() argument
390 State::kListening, sock_type)); in Listen()
397 SockType sock_type) { in Connect() argument
399 new UnixSocket(event_listener, task_runner, sock_type)); in Connect()
409 SockType sock_type) { in AdoptConnected() argument
412 State::kConnected, sock_type)); in AdoptConnected()
417 SockType sock_type) in UnixSocket() argument
[all …]
/external/ltp/testcases/network/netstress/
Dnetstress.c104 static int sock_type = SOCK_STREAM; variable
289 if (errno == ETIME && sock_type != SOCK_STREAM) { in client_recv()
324 int cfd = SAFE_SOCKET(family, sock_type, protocol); in client_connect_send()
470 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()
691 if (sock_type == SOCK_DGRAM) in server_init()
[all …]
/external/honggfuzz/
Dsubproc.c309 int sock_type = SOCK_STREAM; in subproc_New() local
311 sock_type |= SOCK_CLOEXEC; in subproc_New()
313 if (socketpair(AF_UNIX, sock_type, 0, sv) == -1) { in subproc_New()
/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/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/python/cpython3/Modules/
Dsocketmodule.h219 int sock_type; /* Socket type, e.g., SOCK_STREAM */ member
Dsocketmodule.c518 static PyTypeObject sock_type; variable
952 s->sock_type = type; in init_sockobject()
961 s->sock_type = s->sock_type & ~SOCK_NONBLOCK; in init_sockobject()
964 s->sock_type = s->sock_type & ~SOCK_CLOEXEC; in init_sockobject()
997 PyType_GenericNew(&sock_type, NULL, NULL); in new_sockobject()
4766 {"type", T_INT, offsetof(PySocketSockObject, sock_type), READONLY, "the socket type"},
4847 s->sock_type,
5085 static PyTypeObject sock_type = { variable
6755 &sock_type,
6802 Py_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/perfetto/include/perfetto/base/
Dunix_socket.h212 SockType sock_type);
/external/openssh/
Dssh-agent.c99 } sock_type; typedef
103 sock_type type;
970 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.py1674 sock_type = socket.SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC
1676 with socket.socket(socket.AF_INET, sock_type) as s: