Lines Matching refs:sock
558 curl_socket_t sock = CURL_SOCKET_BAD; in main() local
656 sock = socket(AF_INET, SOCK_DGRAM, 0); in main()
659 sock = socket(AF_INET6, SOCK_DGRAM, 0); in main()
662 if(CURL_SOCKET_BAD == sock) { in main()
670 if(0 != setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, in main()
686 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main()
694 rc = bind(sock, &me.sa, sizeof(me.sa6)); in main()
719 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in main()
723 sclose(sock); in main()
775 n = (ssize_t)recvfrom(sock, &buf.storage[0], sizeof(buf.storage), 0, in main()
851 if((peer != sock) && (peer != CURL_SOCKET_BAD)) in main()
854 if(sock != CURL_SOCKET_BAD) in main()
855 sclose(sock); in main()