Struct:ttHttpdUserConEntry

Jump to: navigation, search
 
#define trsocket.h
 
/* Structure containing request info returned by tfHttpdUserGetConInfo()   */
typedef struct tsHttpdUserConEntry
{
    ttHttpdUserSrvHandle    uconSrvHandle;    /* HTTPD server handle       */
    ttUserGenericUnion      uconUserVariable; /* user variable             */
    struct sockaddr_storage uconPeerSockAddr; /* Peer socket address       */
    struct sockaddr_storage uconLocalSockAddr;/* local socket address      */
    ttHttpUserVersion       uconReqVersion;   /* request version           */
    ttHttpUserMethod        uconReqMethod;    /* request method            */
    ttUserCharPtr           uconReqPathPtr;   /* Request path              */
    ttUserCharPtr           uconCredentials;  /* Credentials for BAA       */
/* array of received header string, each header string can be accessed by
 * indexing this array using the enum values defined in ttHttpUserHeaderType,
 * If an element is NULL, it means the header is not available, which
 * further means whether it is not presented in the request or the user has
 * not registered it by calling tfHttpdUserRegisterRequestHeader
 */
    ttUserCharPtr           uconReqHeaders[TM_HTTP_HEADER_COUNT];
    ttUserCharPtr           uconReqBodyPtr;   /* Pointer to body data      */
    ttUser32Bit             uconReqContentLen;/* request content-len value */
    ttUser32Bit             uconAuthFails;    /* Failed login attempts     */
#ifdef TM_USE_HTTPD_CGI
    ttUserCharPtrPtr        uconCgiArgNames;  /* cgi argument names pointer */
    ttUserCharPtrPtr        uconCgiArgValues; /* cgi argument values pointer*/
    int                     uconCgiArgCnt;    /* cgi argument count         */
#endif /* TM_USE_HTTPD_CGI */
    ttUser8Bit              uconHdrTooLong;
} ttHttpdUserConEntry;
 
typedef ttHttpdUserConEntry TM_FAR * ttHttpdUserConEntryPtr;