Lines Matching refs:sock
25 static int sock; variable
51 if (write(sock, REQUEST_CMD, strlen(REQUEST_CMD)) < 0) { in test_output()
56 bytes = read(sock, buf, sizeof(buf) - 1); in test_output()
308 int sock, bytes; in connect_to_socket() local
311 sock = socket(AF_UNIX, SOCK_SEQPACKET, 0); in connect_to_socket()
312 if (sock < 0) { in connect_to_socket()
321 if (connect(sock, (struct sockaddr *) &telem_addr, in connect_to_socket()
325 close(sock); in connect_to_socket()
329 bytes = read(sock, buf, sizeof(buf) - 1); in connect_to_socket()
333 close(sock); in connect_to_socket()
338 return sock; in connect_to_socket()
347 sock = connect_to_socket(); in test_telemetry_data()
348 if (sock <= 0) in test_telemetry_data()
365 close(sock); in test_telemetry_data()
369 close(sock); in test_telemetry_data()