Lines Matching refs:data_sock
187 static struct sock_event_handler_info data_sock[MAX_DATA_CONN]; variable
830 if (epoll_ctl(epollfd, EPOLL_CTL_DEL, data_sock[dsock_idx].sock, &epev) == -1) { in ctrl_data_close()
836 close(data_sock[dsock_idx].sock); in ctrl_data_close()
837 data_sock[dsock_idx].sock = -1; in ctrl_data_close()
843 ret = TEMP_FAILURE_RETRY(read(data_sock[dsock_idx].sock, buf, bufsz)); in ctrl_data_read()
858 ret = TEMP_FAILURE_RETRY(write(data_sock[dsock_idx].sock, buf, bufsz)); in ctrl_data_write()
941 if (data_sock[i].sock < 0) { in get_free_dsock()
966 data_sock[free_dscock_idx].sock = accept(ctrl_sock.sock, NULL, NULL); in ctrl_connect_handler()
967 if (data_sock[free_dscock_idx].sock < 0) { in ctrl_connect_handler()
974 data_sock[free_dscock_idx].handler_info.data = free_dscock_idx; in ctrl_connect_handler()
975 data_sock[free_dscock_idx].handler_info.handler = ctrl_data_handler; in ctrl_connect_handler()
977 epev.data.ptr = (void *)&(data_sock[free_dscock_idx].handler_info); in ctrl_connect_handler()
978 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, data_sock[free_dscock_idx].sock, &epev) == -1) { in ctrl_connect_handler()
1884 data_sock[i].sock = -1; in init()