mikroSDK Reference Manual
http_client_transport.h
Go to the documentation of this file.
1
31#ifndef _HTTP_CLIENT_TRANSPORT_H
32#define _HTTP_CLIENT_TRANSPORT_H
33
34//Dependencies
35#include "core/net.h"
36#include "http/http_client.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//HTTP client related functions
44error_t httpClientOpenConnection(HttpClientContext *context);
45
46error_t httpClientEstablishConnection(HttpClientContext *context,
47 const IpAddr *serverIpAddr, uint16_t serverPort);
48
49error_t httpClientShutdownConnection(HttpClientContext *context);
50void httpClientCloseConnection(HttpClientContext *context);
51
52error_t httpClientSendData(HttpClientContext *context, const void *data,
53 size_t length, size_t *written, uint_t flags);
54
55error_t httpClientReceiveData(HttpClientContext *context, void *data,
56 size_t size, size_t *received, uint_t flags);
57
58error_t httpClientSaveSession(HttpClientContext *context);
59
60//C++ guard
61#ifdef __cplusplus
62}
63#endif
64
65#endif
error_t
Error codes.
Definition error.h:43
HTTP client (HyperText Transfer Protocol)
TCP/IP stack core.
IP network address.
Definition ip.h:72