~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to docs/examples/sendrecv.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (3.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-8xjr3o2sgce5s4bg
Tags: 7.19.4-1
* New upstream release
* Fix "newer bdb version" <explain what you changed and why> 
  (Closes: #517277)
* resolve libtool version confusion, thanks to 
  Stefanos Harhalakis <v13@v13.gr>
* add new dependency on libgcrypt11-dev due to newly arising binary symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *
8
8
 * An example of curl_easy_send() and curl_easy_recv() usage.
9
9
 *
10
 
 * $Id: sendrecv.c,v 1.1 2008-05-12 21:43:28 bagder Exp $
 
10
 * $Id: sendrecv.c,v 1.2 2008-08-14 18:41:37 danf Exp $
11
11
 */
12
12
 
13
13
#include <stdio.h>
18
18
static int wait_on_socket(int sockfd, int for_recv, long timeout_ms)
19
19
{
20
20
  struct timeval tv;
21
 
  long seconds, usecs;
22
21
  fd_set infd, outfd, errfd;
23
22
  int res;
24
23