Lines Matching refs:peer
79 int peer; variable
189 peer = socket(from.sa.sa_family, SOCK_DGRAM, 0); in main()
190 if (peer < 0) { in main()
194 if (connect(peer, (struct sockaddr *)&from, sizeof(from)) < 0) { in main()
372 if (send(peer, dp, size + 4, confirmed) != size + 4) { in sendfile()
380 n = recv(peer, ackbuf, sizeof (ackbuf), 0); in sendfile()
398 synchnet(peer); in sendfile()
437 if (send(peer, ackbuf, 4, confirmed) != 4) { in recvfile()
445 n = recv(peer, dp, PKTSIZE, 0); in recvfile()
461 (void) synchnet(peer); in recvfile()
479 (void) send(peer, ackbuf, 4, confirmed); in recvfile()
483 n = recv(peer, buf, sizeof (buf), 0); /* normally times out and quits */ in recvfile()
488 (void) send(peer, ackbuf, 4, 0); /* resend final ack */ in recvfile()
535 if (send(peer, buf, length, 0) != length) in nak()