Lines Matching refs:peer
196 static curl_socket_t peer = CURL_SOCKET_BAD; variable
792 peer = socket(AF_INET, SOCK_DGRAM, 0); in main()
793 if(CURL_SOCKET_BAD == peer) { in main()
798 if(connect(peer, &from.sa, sizeof(from.sa4)) < 0) { in main()
807 peer = socket(AF_INET6, SOCK_DGRAM, 0); in main()
808 if(CURL_SOCKET_BAD == peer) { in main()
813 if(connect(peer, &from.sa, sizeof(from.sa6)) < 0) { in main()
831 sclose(peer); in main()
832 peer = CURL_SOCKET_BAD; in main()
851 if((peer != sock) && (peer != CURL_SOCKET_BAD)) in main()
852 sclose(peer); in main()
987 getsockopt(peer, SOL_SOCKET, SO_RCVTIMEO, in do_tftp()
990 setsockopt(peer, SOL_SOCKET, SO_RCVTIMEO, in do_tftp()
1001 setsockopt(peer, SOL_SOCKET, SO_RCVTIMEO, in do_tftp()
1198 if(swrite(peer, sdp, size + 4) != size + 4) { in sendtftp()
1208 n = sread(peer, &ackbuf.storage[0], sizeof(ackbuf.storage)); in sendtftp()
1232 (void) synchnet(peer); in sendtftp()
1270 if(swrite(peer, &ackbuf.storage[0], 4) != 4) { in recvtftp()
1280 n = sread(peer, rdp, PKTSIZE); in recvtftp()
1300 (void) synchnet(peer); in recvtftp()
1324 (void) swrite(peer, &ackbuf.storage[0], 4); in recvtftp()
1330 n = sread(peer, &buf.storage[0], sizeof(buf.storage)); in recvtftp()
1339 (void) swrite(peer, &ackbuf.storage[0], 4); /* resend final ack */ in recvtftp()
1376 if(swrite(peer, &buf.storage[0], length) != length) in nak()