• 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
  • GetClientSessionInfo function

    The GetClientSessionInfo function will return information about the remote- or local address used by the clientsession.

    Syntax

    int __stdcall GetClientSessionInfo(
    __in ProtocolSession *psess,
    __in ClientSession *sess,
    __in int type,
    __out void* buf,
    __inout int* len
    );

    Parameters

    psess [in]sess [in]type [in]
    ValueMeaning
    CSI_CLIENT_ADDRESS
    0
    The return information on parameter buf will be the remote address of the client.
    CSI_CLIENT_PORT
    1
    The return information on parameter buf will be the remote port of the client.
    CSI_LOCAL_ADDRESS
    2
    The return information on parameter buf will be the local address.
    CSI_LOCAL_PORT
    3
    The return information on parameter buf will be the local port.
    CSI_CONNECTION_ALIVE
    4
    The return information on parameter buf will be a boolean that indicates if the connection is still alive.

    ValueMeaning
    CSI_RAW_DATA
    0x20000
    Set this flag will make the function return raw data on parameter buf.

    buf [out]len [inout]

    Return value

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

    Requirements

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