Lines Matching defs:socket
11 #include <sys/socket.h>
34 client_handler(void *socket);
46 struct socket {
52 static struct socket v2_socket; /* socket for v2 telemetry */
53 static struct socket v1_socket; /* socket for v1 telemetry */
365 perror("Error writing to socket");
384 perror("Error writing to socket");
440 socket_listener(void *socket)
445 struct socket *s = (struct socket *)socket;
498 int sock = socket(AF_UNIX, SOCK_SEQPACKET, 0);
500 TMTY_LOG_LINE(ERR, "Error with socket creation, %s", strerror(errno));
506 TMTY_LOG_LINE(DEBUG, "Attempting socket bind to path '%s'", path);
511 TMTY_LOG_LINE(DEBUG, "Initial bind to socket '%s' failed.", path);
520 /* check if current socket is active */
526 /* socket is not active, delete and attempt rebind */
530 TMTY_LOG_LINE(ERR, "Error binding socket: %s", strerror(errno));
537 TMTY_LOG_LINE(ERR, "Error calling listen for socket: %s", strerror(errno));
566 TMTY_LOG_LINE(DEBUG, "No legacy callbacks, legacy socket not created");
573 TMTY_LOG_LINE(ERR, "Error with socket binding, path too long");
583 TMTY_LOG_LINE(ERR, "Error with create legacy socket thread: %s",
593 TMTY_LOG_LINE(DEBUG, "Legacy telemetry socket initialized ok");
615 TMTY_LOG_LINE(ERR, "Error with socket binding, path too long");
624 v2_socket.path[0] = '\0'; /* clear socket path */
630 TMTY_LOG_LINE(ERR, "Error with socket binding, path too long");
637 TMTY_LOG_LINE(ERR, "Error with create socket thread: %s",