• About TV's server
  • New in version 3.20
  • New in version 3.10
  • 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
  • Unimplemented and/or replaced functions
  • CloseListenSessionEx function

    The CloseListenSessionEx function will shutdown a ListenSession and optionally remove the ListenSession from the settings.


    int __stdcall CloseListenSessionEx(
    __in ProtocolSession *psess,
    __in ListenSession *lsess,
    __in int flags


    psess [in]lsess [in]flags [in]
    The ListenSession will be removed from the settings. This means next time TV's server starts the ListenSession will not be recovered.

    Return value

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


    This function will make a call to the function PrepareCloseListenSession from the Receiver protocol in lsess. This function should make the StartListening function return false. Next CloseClientSession will be called for every Clientsession(s) associated with lsess. Last the ListenSession will be closed by calling CloseListenSession function exported by all the protocols in the ListenSession. This functions should remove every recource previously allocated by the BindToProtocolCallBack function.

    When flag CLS_REMOVE_LISTENSESSION_FROM_SETTINGS is set, the ListenSession wil be removed from the settings, this means the next time TV's server starts the ListenSession will not be recovered.


    Should be exported by -
    Minimum supported API 1.01
    Header tvsserver_base.h