Searched refs:conn_sock (Results 1 – 1 of 1) sorted by relevance
/system/core/trusty/utils/rpmb_dev/ |
D | rpmb_dev.c | 452 int handle_conn(struct rpmb_dev_state* s, int conn_sock) { in handle_conn() argument 457 ret = recv_until(conn_sock, &s->res_count, sizeof(s->res_count)); in handle_conn() 475 ret = recv_until(conn_sock, &s->cmd_count, sizeof(s->cmd_count)); in handle_conn() 492 ret = recv_until(conn_sock, s->cmd, cmd_size); in handle_conn() 503 ret = send(conn_sock, s->res, resp_size, 0); in handle_conn() 646 int conn_sock = accept(cmdres_sock, NULL, NULL); in main() local 647 if (conn_sock < 0) { in main() 651 ret = handle_conn(&s, conn_sock); in main() 652 close(conn_sock); in main()
|