Lines Matching refs:buf
65 char buf[1024];
81 memset(buf, 0, sizeof(buf));
82 nBytes = PR_Read(sock, buf, sizeof(buf));
88 printf("pong process: received \"%s\"\n", buf);
94 if (strcmp(buf, "ping") != 0) {
96 buf);
100 strcpy(buf, "pong");
101 printf("pong process: sending \"%s\"\n", buf);
102 nBytes = PR_Write(sock, buf, 5);