Home
last modified time | relevance | path

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

/test/vts/drivers/shell/
DShellDriverTest.cpp52 int socket_fd; in vts_shell_driver_test_client_start() local
54 socket_fd = socket(PF_UNIX, SOCK_STREAM, 0); in vts_shell_driver_test_client_start()
55 if (socket_fd < 0) { in vts_shell_driver_test_client_start()
60 VtsDriverCommUtil driverUtil(socket_fd); in vts_shell_driver_test_client_start()
71 conn_success = connect(socket_fd, (struct sockaddr*)&address, in vts_shell_driver_test_client_start()
81 conn_success = connect(socket_fd, (struct sockaddr*)&address, in vts_shell_driver_test_client_start()
115 close(socket_fd); in vts_shell_driver_test_client_start()
DShellDriver.cpp209 int socket_fd, connection_fd; in StartListen() local
213 socket_fd = socket(PF_UNIX, SOCK_STREAM, 0); in StartListen()
214 if (socket_fd < 0) { in StartListen()
216 return socket_fd; in StartListen()
225 if (::bind(socket_fd, (struct sockaddr*)&address, in StartListen()
231 if (listen(socket_fd, 5) != 0) { in StartListen()
241 accept(socket_fd, (struct sockaddr*)&address, &address_length); in StartListen()
249 close(socket_fd); in StartListen()
265 close(socket_fd); in StartListen()