Searched refs:self_socket (Results 1 – 1 of 1) sorted by relevance
/hardware/libhardware/modules/soundtrigger/ |
D | sound_trigger_hw.c | 416 int self_socket; in control_thread_loop() local 429 self_socket = socket(AF_INET, SOCK_STREAM, 0); in control_thread_loop() 430 if (self_socket < 0) { in control_thread_loop() 438 … if (setsockopt(self_socket, SOL_SOCKET, SO_REUSEADDR, (const char*)&reuse, sizeof(reuse)) < 0) { in control_thread_loop() 442 int bind_result = bind(self_socket, (struct sockaddr *)&self_info, sizeof(struct sockaddr)); in control_thread_loop() 448 int listen_result = listen(self_socket, 1); in control_thread_loop() 455 int con_socket = accept(self_socket, (struct sockaddr *)&incoming_info, &sock_size); in control_thread_loop() 468 close(self_socket); in control_thread_loop() 582 int self_socket = socket(AF_INET, SOCK_STREAM, 0); in send_loop_kill_signal() local 588 if (connect(self_socket, (struct sockaddr *)&remote_info, sizeof(struct sockaddr)) == 0) { in send_loop_kill_signal() [all …]
|