Searched refs:sock_fd (Results 1 – 1 of 1) sorted by relevance
554 int sock_fd = -1; in tunning_server_socket_listen() local571 sock_fd = socket(AF_INET, SOCK_STREAM, 0); in tunning_server_socket_listen()572 if (sock_fd < 0) { in tunning_server_socket_listen()574 return sock_fd; in tunning_server_socket_listen()578 socket_flag = fcntl(sock_fd, F_GETFL, 0); in tunning_server_socket_listen()579 fcntl(sock_fd, F_SETFL, socket_flag | O_NONBLOCK); in tunning_server_socket_listen()583 result = setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR, in tunning_server_socket_listen()588 close(sock_fd); in tunning_server_socket_listen()589 sock_fd = -1; in tunning_server_socket_listen()590 return sock_fd; in tunning_server_socket_listen()[all …]