source: rtems/testsuites/libtests/mghttpd01/test-http-client.h @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 957 bytes
Line 
1/*
2 * Copyright (c) 2012 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Obere Lagerstr. 30
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#ifndef TEST_WEB_CLIENT_H
16#define TEST_WEB_CLIENT_H
17
18#include <stdint.h>
19#include <stdbool.h>
20#include <stdio.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif /* __cplusplus */
25
26typedef struct
27{
28  int socket;
29  FILE *fd;
30}
31httpc_context;
32
33void httpc_init_context(
34  httpc_context *ctx
35);
36
37bool httpc_open_connection(
38  httpc_context *ctx,
39  char *targethost,
40  int targetport
41);
42
43bool httpc_close_connection(
44  httpc_context *ctx
45);
46
47bool httpc_send_request(
48  httpc_context *ctx,
49  char *request,
50  char *response,
51  int responsesize
52);
53
54#ifdef __cplusplus
55}
56#endif /* __cplusplus */
57
58#endif /* TEST_WEB_CLIENT_H */
Note: See TracBrowser for help on using the repository browser.