httpsession.h File Reference

#include <gwenhywfar/inherit.h>
#include <gwenhywfar/url.h>
#include <gwenhywfar/iolayer.h>
#include <gwenhywfar/buffer.h>

Go to the source code of this file.

Defines

#define GWEN_HTTP_SESSION_FLAGS_FORCE_SSL3   0x00000001

Typedefs

typedef struct GWEN_HTTP_SESSION GWEN_HTTP_SESSION

Functions

HTTP Setup Functions
Functions of this groups should be called before GWEN_HttpSession_Init because the information conveyed via these functions is needed upon initialisation.

GWENHYWFAR_API void GWEN_HttpSession_AddFlags (GWEN_HTTP_SESSION *sess, uint32_t fl)
GWENHYWFAR_API uint32_t GWEN_HttpSession_GetFlags (const GWEN_HTTP_SESSION *sess)
GWENHYWFAR_API const char * GWEN_HttpSession_GetHttpContentType (const GWEN_HTTP_SESSION *sess)
GWENHYWFAR_API const char * GWEN_HttpSession_GetHttpUserAgent (const GWEN_HTTP_SESSION *sess)
GWENHYWFAR_API int GWEN_HttpSession_GetHttpVMajor (const GWEN_HTTP_SESSION *sess)
GWENHYWFAR_API int GWEN_HttpSession_GetHttpVMinor (const GWEN_HTTP_SESSION *sess)
GWENHYWFAR_API void GWEN_HttpSession_SetFlags (GWEN_HTTP_SESSION *sess, uint32_t fl)
GWENHYWFAR_API void GWEN_HttpSession_SetHttpContentType (GWEN_HTTP_SESSION *sess, const char *s)
GWENHYWFAR_API void GWEN_HttpSession_SetHttpUserAgent (GWEN_HTTP_SESSION *sess, const char *s)
GWENHYWFAR_API void GWEN_HttpSession_SetHttpVMajor (GWEN_HTTP_SESSION *sess, int i)
GWENHYWFAR_API void GWEN_HttpSession_SetHttpVMinor (GWEN_HTTP_SESSION *sess, int i)
GWENHYWFAR_API void GWEN_HttpSession_SubFlags (GWEN_HTTP_SESSION *sess, uint32_t fl)
Contructor/Destructor
GWENHYWFAR_API void GWEN_HttpSession_Attach (GWEN_HTTP_SESSION *sess)
GWENHYWFAR_API void GWEN_HttpSession_free (GWEN_HTTP_SESSION *sess)
GWENHYWFAR_API GWEN_HTTP_SESSIONGWEN_HttpSession_new (const char *url, uint32_t guiid)
Initialisation and Deinitialisation
GWENHYWFAR_API int GWEN_HttpSession_Fini (GWEN_HTTP_SESSION *sess)
GWENHYWFAR_API GWEN_IO_LAYERGWEN_HttpSession_GetIoLayer (const GWEN_HTTP_SESSION *sess)
GWENHYWFAR_API int GWEN_HttpSession_Init (GWEN_HTTP_SESSION *sess)
Informational Functions
GWENHYWFAR_API uint32_t GWEN_HttpSession_GetGuiId (const GWEN_HTTP_SESSION *sess)
Sending and Receiving
GWENHYWFAR_API int GWEN_HttpSession_RecvPacket (GWEN_HTTP_SESSION *sess, GWEN_BUFFER *buf, int timeout)
GWENHYWFAR_API int GWEN_HttpSession_SendPacket (GWEN_HTTP_SESSION *sess, const char *httpCommand, const uint8_t *buf, uint32_t blen, int timeout)


Define Documentation

#define GWEN_HTTP_SESSION_FLAGS_FORCE_SSL3   0x00000001

This flag forces SSLv3 connections when in HTTPS mode.

Definition at line 39 of file httpsession.h.

Referenced by GWEN_HttpSession_Init(), and GWEN_HttpSession_SendPacket().


Typedef Documentation

Definition at line 23 of file httpsession.h.


Generated on Fri Apr 11 01:53:48 2008 for gwenhywfar by  doxygen 1.5.5