Home
last modified time | relevance | path

Searched refs:sock_type (Results 1 - 8 of 8) sorted by relevance

/third_party/ltp/testcases/network/netstress/
H A Dnetstress.c100 static int sock_type = SOCK_STREAM; variable
287 if (sock_type != SOCK_STREAM) { in client_recv()
332 int cfd = SAFE_SOCKET(family, sock_type, protocol); in client_connect_send()
468 hints.ai_socktype = sock_type; in client_init()
544 int start_send_type = (sock_type == SOCK_DGRAM) ? 1 : 0; in server_fn()
605 if (sock_type == SOCK_STREAM && in server_fn()
630 if (sock_type == SOCK_STREAM && in server_fn()
661 hints.ai_socktype = sock_type; in server_init()
674 sfd = SAFE_SOCKET(family, sock_type, protocol); in server_init()
692 if (sock_type in server_init()
[all...]
/third_party/node/deps/openssl/openssl/apps/lib/
H A Ds_socket.c268 int sock_family, sock_type, sock_protocol, sock_port; in do_server() local
291 sock_type = BIO_ADDRINFO_socktype(res); in do_server()
299 && BIO_ADDRINFO_socktype(next) == sock_type in do_server()
316 asock = BIO_socket(sock_family, sock_type, sock_protocol, 0); in do_server()
318 asock = BIO_socket(sock_family_fallback, sock_type, sock_protocol, 0); in do_server()
/third_party/openssl/apps/lib/
H A Ds_socket.c268 int sock_family, sock_type, sock_protocol, sock_port; in do_server() local
291 sock_type = BIO_ADDRINFO_socktype(res); in do_server()
299 && BIO_ADDRINFO_socktype(next) == sock_type in do_server()
316 asock = BIO_socket(sock_family, sock_type, sock_protocol, 0); in do_server()
318 asock = BIO_socket(sock_family_fallback, sock_type, sock_protocol, 0); in do_server()
/third_party/ltp/testcases/network/lib6/
H A Dgetaddrinfo_01.c42 static void verify_res(struct addrinfo *res, int sock_type, in_port_t servnum, in verify_res() argument
89 if (!sock_type && (!got_tcp || !got_udp)) { in verify_res()
/third_party/python/Modules/
H A Dsocketmodule.h301 int sock_type; /* Socket type, e.g., SOCK_STREAM */ member
H A Dsocketmodule.c335 class _socket.socket "PySocketSockObject *" "&sock_type"
534 The sock_type variable contains pointers to various functions,
535 some of which call new_sockobject(), which uses sock_type, so
537 static PyTypeObject sock_type; variable
988 s->sock_type = type; in init_sockobject()
997 s->sock_type = s->sock_type & ~SOCK_NONBLOCK; in init_sockobject()
1000 s->sock_type = s->sock_type & ~SOCK_CLOEXEC; in init_sockobject()
1034 PyType_GenericNew(&sock_type, NUL in new_sockobject()
5406 static PyTypeObject sock_type = { global() variable
[all...]
/third_party/python/Lib/test/test_asyncio/
H A Dtest_selector_events.py156 for sock_type in [socket.SOCK_STREAM, socket.SOCK_DGRAM]:
157 with self.subTest(sock_type):
158 sock = test_utils.mock_nonblocking_socket(type=sock_type)
/third_party/python/Lib/test/
H A Dtest_socket.py1834 sock_type = socket.SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC
1836 with socket.socket(socket.AF_INET, sock_type) as s:

Completed in 19 milliseconds