Searched refs:sock_type (Results 1 – 9 of 9) sorted by relevance
/third_party/ltp/testcases/network/netstress/ |
D | netstress.c | 100 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() 467 hints.ai_socktype = sock_type; in client_init() 543 int start_send_type = (sock_type == SOCK_DGRAM) ? 1 : 0; in server_fn() 604 if (sock_type == SOCK_STREAM && in server_fn() 629 if (sock_type == SOCK_STREAM && in server_fn() 660 hints.ai_socktype = sock_type; in server_init() 673 sfd = SAFE_SOCKET(family, sock_type, protocol); in server_init() 691 if (sock_type == SOCK_DGRAM) in server_init() [all …]
|
/third_party/openssl/apps/lib/ |
D | s_socket.c | 268 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/ |
D | getaddrinfo_01.c | 42 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/ |
D | socketmodule.h | 286 int sock_type; /* Socket type, e.g., SOCK_STREAM */ member
|
D | socketmodule.c | 519 static PyTypeObject sock_type; variable 964 s->sock_type = type; in init_sockobject() 973 s->sock_type = s->sock_type & ~SOCK_NONBLOCK; in init_sockobject() 976 s->sock_type = s->sock_type & ~SOCK_CLOEXEC; in init_sockobject() 1009 PyType_GenericNew(&sock_type, NULL, NULL); in new_sockobject() 4976 {"type", T_INT, offsetof(PySocketSockObject, sock_type), READONLY, "the socket type"}, 5057 s->sock_type, 5315 static PyTypeObject sock_type = { variable 7058 capi->Sock_Type = (PyTypeObject *)Py_NewRef(&sock_type); 7106 Py_SET_TYPE(&sock_type, &PyType_Type); [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/sctp/ |
D | sctpassociation.c | 599 guint sock_type = self->use_sock_stream ? SOCK_STREAM : SOCK_SEQPACKET; in create_sctp_socket() local 602 usrsctp_socket (AF_CONN, sock_type, IPPROTO_SCTP, receive_cb, NULL, 0, in create_sctp_socket()
|
/third_party/python/Lib/test/ |
D | test_socket.py | 1800 sock_type = socket.SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC 1802 with socket.socket(socket.AF_INET, sock_type) as s:
|
/third_party/python/Tools/c-analyzer/cpython/ |
D | ignored.tsv | 2336 Modules/socketmodule.c - sock_type -
|
/third_party/libbpf/.github/actions/build-selftests/ |
D | vmlinux.h | 39066 enum sock_type { enum
|