Home
last modified time | relevance | path

Searched refs:socket_fd (Results 1 – 15 of 15) sorted by relevance

/external/ltp/testcases/kernel/syscalls/getsockopt/
Dgetsockopt02.c29 static int socket_fd, accepted; variable
38 socket_fd = SAFE_SOCKET(sun.sun_family, SOCK_STREAM, 0); in setup()
39 SAFE_BIND(socket_fd, (struct sockaddr *)&sun, sizeof(sun)); in setup()
40 SAFE_LISTEN(socket_fd, SOMAXCONN); in setup()
63 accepted = accept(socket_fd, NULL, NULL); in test_function()
89 if (socket_fd >= 0) in cleanup()
90 SAFE_CLOSE(socket_fd); in cleanup()
/external/adhd/cras/src/server/
Dcras_server.c442 int socket_fd = -1; in cras_server_run() local
491 socket_fd = socket(PF_UNIX, SOCK_SEQPACKET, 0); in cras_server_run()
492 if (socket_fd < 0) { in cras_server_run()
494 rc = socket_fd; in cras_server_run()
513 rc = fchmod(socket_fd, 0700); in cras_server_run()
517 if (bind(socket_fd, (struct sockaddr *) &addr, in cras_server_run()
529 if (listen(socket_fd, 5) != 0) { in cras_server_run()
555 pollfds[0].fd = socket_fd; in cras_server_run()
601 handle_new_connection(&addr, socket_fd); in cras_server_run()
624 if (socket_fd >= 0) { in cras_server_run()
[all …]
/external/bcc/examples/networking/dns_matching/
Ddns_matching.py76 socket_fd = function_dns_matching.sock variable
77 fl = fcntl.fcntl(socket_fd, fcntl.F_GETFL)
78 fcntl.fcntl(socket_fd, fcntl.F_SETFL, fl & (~os.O_NONBLOCK))
83 packet_str = os.read(socket_fd, 2048)
/external/bcc/examples/networking/http_filter/
Dhttp-parse-simple.py76 socket_fd = function_http_filter.sock variable
79 sock = socket.fromfd(socket_fd,socket.PF_PACKET,socket.SOCK_RAW,socket.IPPROTO_IP)
85 packet_str = os.read(socket_fd,2048)
Dhttp-parse-complete.py129 socket_fd = function_http_filter.sock variable
132 sock = socket.fromfd(socket_fd,socket.PF_PACKET,socket.SOCK_RAW,socket.IPPROTO_IP)
149 packet_str = os.read(socket_fd,4096) #set packet length to max packet length on the interface
/external/bcc/examples/networking/vlan_filter/
Ddata-plane-tracing.py86 socket_fd = function_vlan_filter.sock variable
89 sock = socket.fromfd(socket_fd,socket.PF_PACKET,socket.SOCK_RAW,socket.IPPROTO_IP)
105 packet_str = os.read(socket_fd, 2048)
/external/perfetto/src/ipc/
Dhost_impl.cc46 std::unique_ptr<Host> Host::CreateInstance(base::ScopedFile socket_fd, in CreateInstance() argument
49 new HostImpl(std::move(socket_fd), task_runner)); in CreateInstance()
55 HostImpl::HostImpl(base::ScopedFile socket_fd, base::TaskRunner* task_runner) in HostImpl() argument
59 sock_ = base::UnixSocket::Listen(std::move(socket_fd), this, task_runner_); in HostImpl()
Dhost_impl.h40 HostImpl(base::ScopedFile socket_fd, base::TaskRunner*);
/external/libchrome/mojo/core/
Dbroker_posix.cc27 int socket_fd, in WaitForBrokerMessage() argument
36 SocketRecvmsg(socket_fd, const_cast<void*>(message->data()), in WaitForBrokerMessage()
/external/webrtc/webrtc/base/
Dmacasyncsocket.cc235 int socket_fd = ::accept(native_socket_, reinterpret_cast<sockaddr*>(&saddr), in Accept() local
237 if (socket_fd == INVALID_SOCKET) { in Accept()
242 MacAsyncSocket* s = new MacAsyncSocket(ss_, saddr.ss_family, socket_fd); in Accept()
/external/perfetto/include/perfetto/ipc/
Dhost.h48 static std::unique_ptr<Host> CreateInstance(base::ScopedFile socket_fd,
/external/grpc-grpc/test/core/iomgr/
Dfd_posix_test.cc59 static void create_test_socket(int port, int* socket_fd, in create_test_socket() argument
75 *socket_fd = fd; in create_test_socket()
/external/curl/lib/
Dasyn-ares.c123 static void Curl_ares_sock_state_cb(void *data, ares_socket_t socket_fd, in Curl_ares_sock_state_cb() argument
129 Curl_multi_closed(easy, socket_fd); in Curl_ares_sock_state_cb()
/external/libbrillo/brillo/http/
Dhttp_transport_curl.cc39 curl_socket_t socket_fd) in SocketPollData() argument
43 socket_fd_(socket_fd), in SocketPollData()
/external/adhd/cras/src/tests/
Drclient_unittest.cc767 int cras_server_disconnect_from_client_socket(int socket_fd) { in cras_server_disconnect_from_client_socket() argument