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

Lines Matching refs:socket

33 #include <sys/socket.h>
46 #define NAME "socket"
49 * This program creates a UNIX domain datagram socket, binds a name to it,
50 * then reads from the socket.
58 /* Create socket from which to read. */
59 sock = socket(AF_UNIX, SOCK_DGRAM, 0);
61 perror("opening datagram socket");
68 perror("binding name to datagram socket");
71 printf("socket -->%s\en", NAME);
72 /* Read from the socket */