Lines Matching full:many
179 int one, many[3], two;
183 /* Establish one to many connection. */
189 ATF_REQUIRE((many[i] = socket(PF_UNIX, SOCK_DGRAM, 0)) > 0);
190 ATF_REQUIRE(connect(many[i], (struct sockaddr *)&sun,
220 #define FLOODER 13 /* for connected flooder on many[0] */
221 #define GOODBOY 42 /* for a good boy on many[1] */
231 ATF_REQUIRE(send(many[1], goodboy, BUFSIZE, 0) == BUFSIZE);
238 fill(many[0], flooder, sizeof(flooder));
239 ATF_REQUIRE(send(many[0], flooder, BUFSIZE, 0) == -1);
241 ATF_REQUIRE(send(many[1], goodboy, BUFSIZE, 0) == BUFSIZE);
250 ATF_REQUIRE(send(many[1], goodboy, BUFSIZE, 0) == BUFSIZE);
261 close(many[0]);
265 ATF_REQUIRE(errno == EAGAIN); /* data from many[0] discarded */
268 ATF_REQUIRE(send(many[1], goodboy, BUFSIZE, 0) == BUFSIZE);
269 close(many[1]);
271 ATF_REQUIRE(buf[0] == GOODBOY); /* message from many[1] preserved */
274 ATF_REQUIRE(send(many[2], buf, 42, 0) == 42);
275 ATF_REQUIRE(send(many[2], buf, 42, 0) == 42);