tfHttpcUserStoreVariable

Jump to: navigation, search

Table of Contents >> Application Reference >> Web Client


#include <trsocket.h>


int tfHttpcUserStoreVariable (
ttHttpcUserConHandle conHandle,
ttUserGenericUnion genParamPtr,
int flags
);



Function Description

Saves user data (parameter genParam) on the HTTP client connection, so that it can be retrieved later by tfHttpcUserRetrieveVariable(). These two APIs can be used together for the user to remember the HTTP client sending and receiving progress in non-blocking mode. This API can be called at any time after the connection is open and before it is closed.



Parameters

  • conHandle
    HTTP client user connection handle
  • genParam
    generic union variable to be stored
  • flags
    Not used



Returns

  • TM_ENOERROR
    Success
  • TM_EINVAL
    Invalid client connection handle



Table of Contents >> Application Reference >> Web Client