~ubuntu-branches/ubuntu/raring/curl/raring-updates

« 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
  • mto: (1.2.1 upstream) (3.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-geixkwhe3izccjt7
Tags: upstream-7.19.4
ImportĀ upstreamĀ versionĀ 7.19.4

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