Searched refs:self_socket (Results 1 – 1 of 1) sorted by relevance
/hardware/libhardware/modules/soundtrigger/ |
D | sound_trigger_hw.c | 415 int self_socket; in control_thread_loop() local 428 self_socket = socket(AF_INET, SOCK_STREAM, 0); in control_thread_loop() 429 if (self_socket < 0) { in control_thread_loop() 437 … if (setsockopt(self_socket, SOL_SOCKET, SO_REUSEADDR, (const char*)&reuse, sizeof(reuse)) < 0) { in control_thread_loop() 441 int bind_result = bind(self_socket, (struct sockaddr *)&self_info, sizeof(struct sockaddr)); in control_thread_loop() 447 int listen_result = listen(self_socket, 1); in control_thread_loop() 454 int con_socket = accept(self_socket, (struct sockaddr *)&incoming_info, &sock_size); in control_thread_loop() 467 close(self_socket); in control_thread_loop() 581 int self_socket = socket(AF_INET, SOCK_STREAM, 0); in send_loop_kill_signal() local 587 if (connect(self_socket, (struct sockaddr *)&remote_info, sizeof(struct sockaddr)) == 0) { in send_loop_kill_signal() [all …]
|