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

« back to all changes in this revision

Viewing changes to lib/sendf.h

  • 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
 *                             \___|\___/|_| \_\_____|
9
9
 *
10
 
 * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
 
10
 * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
11
11
 *
12
12
 * This software is licensed as described in the file COPYING, which
13
13
 * you should have received as part of this distribution. The terms
20
20
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
 * KIND, either express or implied.
22
22
 *
23
 
 * $Id: sendf.h,v 1.43 2008-05-09 11:27:55 mmarek Exp $
 
23
 * $Id: sendf.h,v 1.46 2008-09-29 11:13:37 bagder Exp $
24
24
 ***************************************************************************/
25
25
 
26
26
#include "setup.h"
58
58
void Curl_read_rewind(struct connectdata *conn,
59
59
                      size_t extraBytesRead);
60
60
 
 
61
/* internal read-function, does plain socket only */
 
62
int Curl_read_plain(curl_socket_t sockfd,
 
63
                    char *buf,
 
64
                    size_t bytesfromsocket,
 
65
                    ssize_t *n);
 
66
 
61
67
/* internal read-function, does plain socket, SSL and krb4 */
62
68
int Curl_read(struct connectdata *conn, curl_socket_t sockfd,
63
69
              char *buf, size_t buffersize,
64
70
              ssize_t *n);
65
 
/* internal write-function, does plain socket, SSL and krb4 */
 
71
/* internal write-function, does plain socket, SSL, SCP, SFTP and krb4 */
66
72
CURLcode Curl_write(struct connectdata *conn,
67
73
                    curl_socket_t sockfd,
68
74
                    const void *mem, size_t len,
69
75
                    ssize_t *written);
70
76
 
 
77
/* internal write-function, does plain sockets ONLY */
 
78
CURLcode Curl_write_plain(struct connectdata *conn,
 
79
                          curl_socket_t sockfd,
 
80
                          const void *mem, size_t len,
 
81
                          ssize_t *written);
 
82
 
71
83
/* the function used to output verbose information */
72
84
int Curl_debug(struct SessionHandle *handle, curl_infotype type,
73
85
               char *data, size_t size,