Lines Matching refs:buf
64 char buf[1024];
70 memset(buf, 0, sizeof(buf));
71 nBytes = PR_Read(pong_in, buf, sizeof(buf));
76 printf("pong thread: received \"%s\"\n", buf);
82 if (strcmp(buf, "ping") != 0) {
84 buf);
87 strcpy(buf, "pong");
88 printf("pong thread: sending \"%s\"\n", buf);
89 nBytes = PR_Write(pong_out, buf, 5);
113 char buf[1024];
136 strcpy(buf, "ping");
137 printf("ping thread: sending \"%s\"\n", buf);
138 nBytes = PR_Write(ping_out, buf, 5);
144 memset(buf, 0, sizeof(buf));
145 nBytes = PR_Read(ping_in, buf, sizeof(buf));
150 printf("ping thread: received \"%s\"\n", buf);
156 if (strcmp(buf, "pong") != 0) {
158 buf);
188 nBytes = PR_Write(ping_out, buf, 250);
206 nBytes = PR_Read(ping_in, buf, 7);
224 nBytes = PR_Read(ping_in, buf, sizeof(buf));