Lines Matching refs:peer
200 static curl_socket_t peer = CURL_SOCKET_BAD;
846 peer = socket(AF_INET, SOCK_DGRAM, 0);
847 if(CURL_SOCKET_BAD == peer) {
852 if(connect(peer, &from.sa, sizeof(from.sa4)) < 0) {
861 peer = socket(AF_INET6, SOCK_DGRAM, 0);
862 if(CURL_SOCKET_BAD == peer) {
867 if(connect(peer, &from.sa, sizeof(from.sa6)) < 0) {
885 sclose(peer);
886 peer = CURL_SOCKET_BAD;
910 if((peer != sock) && (peer != CURL_SOCKET_BAD))
911 sclose(peer);
1042 getsockopt(peer, SOL_SOCKET, SO_RCVTIMEO,
1045 setsockopt(peer, SOL_SOCKET, SO_RCVTIMEO,
1056 setsockopt(peer, SOL_SOCKET, SO_RCVTIMEO,
1265 if(swrite(peer, sdp, size + 4) != size + 4) {
1274 n = sread(peer, &ackbuf.storage[0], sizeof(ackbuf.storage));
1297 (void) synchnet(peer);
1334 if(swrite(peer, &ackbuf.storage[0], 4) != 4) {
1343 n = sread(peer, rdp, PKTSIZE);
1362 (void) synchnet(peer);
1382 (void) swrite(peer, &ackbuf.storage[0], 4);
1388 n = sread(peer, &buf.storage[0], sizeof(buf.storage));
1397 (void) swrite(peer, &ackbuf.storage[0], 4); /* resend final ack */
1429 if(swrite(peer, &buf.storage[0], length) != length)