• 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
  • ProtocolSession64 structure

    Contains information about the protocol and is used to identify the protocol by several functions. Use this on 64-bit systems, use ProtocolSession on 32-bit machines.

    Syntax

    typedef struct ProtocolSession64{
    int size;
    int reserved;
    char *protocolName;
    int lastError;
    } ProtocolSession64;

    Members

    sizereservedprotocolNamelastError
    ValueMeaning
    NO_ERROR
    0
    No error occurred.
    PT_WRONG_TYPE
    1
    An unknown type has been passed through the SetProtocolInformation function.
    PSESS_NOT_VALID
    2
    The pointer given on parameter psess is not a valid ProtocolSession.
    VERSION_UNSUPPORTED
    3
    The requested version of TV's server API is not supported.
    INVALID_POINTER
    4
    The function is passed a invalid pointer.
    UVO_WRONG_TYPE
    5
    An unknown type on one of the UserValueOption structures.
    CORRUPT_SIZE
    6
    The size member of one of the passed structures is corrupted.
    LSESS_NOT_VALID
    7
    The pointer given on parameter lsess is not a valid ListenSession.

    Requirements

    Minimum supported API 1.00
    Header tvsserver_base.h