Lines Matching refs:consumer_addr
116 void producer(struct sockaddr_un *consumer_addr) in producer() argument
126 if (connect(cfd, (struct sockaddr *)consumer_addr, in producer()
127 sizeof(*consumer_addr)) != 0) { in producer()
178 struct sockaddr_un consumer_addr, paddr; in main() local
179 socklen_t len = sizeof(consumer_addr); in main()
188 memset(&consumer_addr, 0, sizeof(consumer_addr)); in main()
189 consumer_addr.sun_family = AF_UNIX; in main()
192 strcpy(consumer_addr.sun_path, sock_name); in main()
194 if ((bind(lfd, (struct sockaddr *)&consumer_addr, in main()
195 sizeof(consumer_addr))) != 0) { in main()
206 producer(&consumer_addr); in main()