Home | History | Annotate | Download | only in keystore

Lines Matching refs:sock

44     int sock;
49 sock = socket_local_client("keystore", ANDROID_SOCKET_NAMESPACE_RESERVED,
51 if (sock == -1) {
54 if (send(sock, &code, 1, 0) == 1 && send(sock, bytes, 2, 0) == 2 &&
55 send(sock, key, length, 0) == length && shutdown(sock, SHUT_WR) == 0 &&
56 recv(sock, &code, 1, 0) == 1 && code == /* NO_ERROR */ 1 &&
57 recv(sock, &bytes[0], 1, 0) == 1 && recv(sock, &bytes[1], 1, 0) == 1) {
61 int n = recv(sock, &value[offset], length - offset, 0);
72 close(sock);