Lines Matching refs:socket
27 that we need to use IPC (i.e. unix domain socket) to convey
37 #include <sys/socket.h>
49 /* This is default socket name we use in case the provided socket name
56 /* The socket connected to the daemon. */
59 /* Creates a socket connected to the daemon. On success, store the
60 socket fd in *SOCK. Returns error code. */
72 /* Create a socket. */
73 fd = socket (AF_UNIX, SOCK_STREAM, 0);
76 log_error ("can't create socket: %s\n", strerror (errno));
93 log_error ("socket name `%s' too long\n", socketname);
101 /* Connect socket. */
105 log_error ("error connecting socket `%s': %s\n",
218 /* Open the socket if that has not been done. */
233 /* Check that we have a valid socket descriptor. */