File: www.h

package info (click to toggle)
clamav 0.100.3+dfsg-0+deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-updates
  • size: 31,428 kB
  • sloc: ansic: 162,298; sh: 7,984; cpp: 4,787; makefile: 2,081; yacc: 1,354; lex: 714; python: 120; perl: 17
file content (29 lines) | stat: -rw-r--r-- 1,143 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 *  Copyright (C) 2014 Cisco and/or its affiliates. All rights reserved.
 *
 *  Author: Shawn Webb
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License version 2 as
 *  published by the Free Software Foundation.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *  MA 02110-1301, USA.
 */

#if !defined(_LIBCLAMAV_WWW_H)
#define _LIBCLAMAV_WWW_H

int connect_host(const char *host, const char *port, uint32_t timeout, int useAsync);
size_t encoded_size(const char *postdata);
char *encode_data(const char *postdata);
void submit_post(const char *host, const char *port, const char *method, const char *url, const char *postdata, uint32_t timeout);

#endif