Lines Matching defs:sock
772 static int get_request(curl_socket_t sock, struct httprequest *req)
822 got = sread(sock, reqbuf + req->offset, req->cl);
824 got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset);
883 static int send_doc(curl_socket_t sock, struct httprequest *req)
913 written = swrite(sock, STREAMTHIS, count);
1068 written = swrite(sock, buffer, num);
1093 written = swrite(sock, req->rtp_buffer + (req->rtp_buffersize - count), num);
1187 curl_socket_t sock = CURL_SOCKET_BAD;
1283 sock = socket(AF_INET, SOCK_STREAM, 0);
1286 sock = socket(AF_INET6, SOCK_STREAM, 0);
1289 if(CURL_SOCKET_BAD == sock) {
1297 if (0 != setsockopt(sock, SOL_SOCKET, SO_REUSEADDR,
1312 rc = bind(sock, &me.sa, sizeof(me.sa4));
1320 rc = bind(sock, &me.sa, sizeof(me.sa6));
1333 rc = listen(sock, 5);
1351 msgsock = accept(sock, NULL, NULL);
1449 if((msgsock != sock) && (msgsock != CURL_SOCKET_BAD))
1452 if(sock != CURL_SOCKET_BAD)
1453 sclose(sock);