Lines Matching refs:conn_fd

219 	int		conn_fd;  in ipc_loop()  local
236 conn_fd = accept(sock_fd, (struct sockaddr *)&client, (unsigned int *) &len); in ipc_loop()
241 if (conn_fd == -1) { in ipc_loop()
257 close(conn_fd); in ipc_loop()
264 do_request(conn_fd); in ipc_loop()
265 shutdown(conn_fd, SHUT_WR); in ipc_loop()
266 while (read(conn_fd, &dummy, 1) > 0) { } in ipc_loop()
267 close(conn_fd); in ipc_loop()
280 do_request(conn_fd); in ipc_loop()
281 shutdown(conn_fd, SHUT_WR); in ipc_loop()
282 while (read(conn_fd, &dummy, 1) > 0) { } in ipc_loop()
283 close(conn_fd); in ipc_loop()
328 void do_request(int conn_fd) { in do_request() argument
346 if (rx_rec(conn_fd, (void *)&count, (size_t)sizeof(count)) != (ssize_t)sizeof(count)) in do_request()
353 send_no(conn_fd, ""); in do_request()
357 if (rx_rec(conn_fd, (void *)login, (size_t)count) != (ssize_t)count) in do_request()
363 if (rx_rec(conn_fd, (void *)&count, (size_t)sizeof(count)) != (ssize_t)sizeof(count)) in do_request()
370 send_no(conn_fd, ""); in do_request()
374 if (rx_rec(conn_fd, (void *)password, (size_t)count) != (ssize_t)count) in do_request()
380 if (rx_rec(conn_fd, (void *)&count, (size_t)sizeof(count)) != (ssize_t)sizeof(count)) in do_request()
387 send_no(conn_fd, ""); in do_request()
391 if (rx_rec(conn_fd, (void *)service, (size_t)count) != (ssize_t)count) in do_request()
397 if (rx_rec(conn_fd, (void *)&count, (size_t)sizeof(count)) != (ssize_t)sizeof(count)) in do_request()
404 send_no(conn_fd, ""); in do_request()
408 if (rx_rec(conn_fd, (void *)realm, (size_t)count) != (ssize_t)count) in do_request()
418 send_no(conn_fd, "NULL login received"); in do_request()
424 send_no(conn_fd, "NULL password received"); in do_request()
436 send_no(conn_fd, "NULL response from mechanism"); in do_request()
443 if (tx_rec(conn_fd, (void *)&ncount, (size_t)sizeof(ncount)) != (ssize_t)sizeof(ncount)) { in do_request()
448 if (tx_rec(conn_fd, (void *)response, (size_t)count) != (ssize_t)sizeof(count)) { in do_request()
467 void send_no(int conn_fd, char *mesg) { in send_no() argument
483 if (tx_rec(conn_fd, (void *)&ncount, (size_t)sizeof(ncount)) != (ssize_t)sizeof(ncount)) in send_no()
486 if (tx_rec(conn_fd, (void *)buff, (size_t)count) != (ssize_t)sizeof(count)) in send_no()