• About TV's server
  • About the source code
  • About protocols/plugins
  • TV's server API
  • Protocol Initialisation
  • Protocol binding
  • Protocol Listening and handling
  • Protocol data storage
  • Control panel
  • Multi column list
  • Time and date
  • Http protocol functions
  • CloseListenSession function

    The CloseListenSession function will shutdown a listensession.

    Syntax

    int __stdcall CloseListenSession(
    __in ProtocolSession *psess,
    __in ListenSession *lsess
    );

    Parameters

    psess [in]lsess [in]

    Return value

    If no error occurs the function returns True (one). If the function fails it will return False (zero).

    Remarks

    This function will make a call to the function PrepareCloseListenSession of the Receiver protocol in this Listensession. This function will make sure the StartListening function, called when the protocols where succesfully binded, will return false. When (all) the Clientsession(s), created by this ListenSession, are closed the CloseListenSession function exported by the protocols in the ListenSession will be called. These functions should remove every recource previously allocated by the BindToProtocolCallBack function.

    Requirements

    Should be exported by Receiver, Transformer and Processor plugin.
    Minimum supported API 1.00
    Header tvsserver_base.h