Lines Matching refs:sock
27 static int sock; variable
53 if (write(sock, REQUEST_CMD, strlen(REQUEST_CMD)) < 0) { in test_output()
58 bytes = read(sock, buf, sizeof(buf) - 1); in test_output()
338 int sock, bytes; in connect_to_socket() local
341 sock = socket(AF_UNIX, SOCK_SEQPACKET, 0); in connect_to_socket()
342 if (sock < 0) { in connect_to_socket()
351 if (connect(sock, (struct sockaddr *) &telem_addr, in connect_to_socket()
355 close(sock); in connect_to_socket()
359 bytes = read(sock, buf, sizeof(buf) - 1); in connect_to_socket()
363 close(sock); in connect_to_socket()
368 return sock; in connect_to_socket()
377 sock = connect_to_socket(); in test_telemetry_data()
378 if (sock <= 0) in test_telemetry_data()
396 close(sock); in test_telemetry_data()
400 close(sock); in test_telemetry_data()