Home | History | Annotate | Download | only in 20.ipctut

Lines Matching refs:socket

33 #include <sys/socket.h>
37 #define NAME "socket"
40 * This program creates a socket in the UNIX domain and binds a name to it.
41 * After printing the socket's name it begins a loop. Each time through the
52 /* Create socket */
53 sock = socket(AF_UNIX, SOCK_STREAM, 0);
55 perror("opening stream socket");
58 /* Name socket using file system name */
62 perror("binding stream socket");
65 printf("Socket has name %s\en", server.sun_path);